~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/per_branch/test_branch.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-08-29 14:12:42 UTC
  • mfrom: (6104.2.4 bzr.dev)
  • Revision ID: pqm@pqm.ubuntu.com-20110829141242-gqvd3pz0tdcgnhfy
(jelmer) Various improvements to the testsuite to allow running against
 foreign branches. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
622
622
class TestChildSubmitFormats(per_branch.TestCaseWithBranch):
623
623
 
624
624
    def test_get_child_submit_format_default(self):
625
 
        self.assertEqual(None, self.get_branch().get_child_submit_format())
 
625
        submit_format = self.get_branch().get_child_submit_format()
 
626
        self.assertTrue(submit_format is None or
 
627
                        isinstance(submit_format, str))
626
628
 
627
629
    def test_get_child_submit_format(self):
628
630
        branch = self.get_branch()