/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_commit.py

  • Committer: Jelmer Vernooij
  • Date: 2011-04-16 08:42:21 UTC
  • mfrom: (5777.6.11 commit-lossy)
  • mto: This revision was merged to the branch mainline in revision 5792.
  • Revision ID: jelmer@samba.org-20110416084221-g9kgp1j4o9zo0kk4
merge commit-lossy

Show diffs side-by-side

added added

removed removed

Lines of Context:
422
422
        wt = self.make_branch_and_tree('.')
423
423
        branch = wt.branch
424
424
        wt.commit("base", allow_pointless=True, rev_id='A')
425
 
        self.failIf(branch.repository.has_signature_for_revision_id('A'))
 
425
        self.assertFalse(branch.repository.has_signature_for_revision_id('A'))
426
426
        try:
427
427
            from bzrlib.testament import Testament
428
428
            # monkey patch gpg signing mechanism
446
446
        wt = self.make_branch_and_tree('.')
447
447
        branch = wt.branch
448
448
        wt.commit("base", allow_pointless=True, rev_id='A')
449
 
        self.failIf(branch.repository.has_signature_for_revision_id('A'))
 
449
        self.assertFalse(branch.repository.has_signature_for_revision_id('A'))
450
450
        try:
451
451
            # monkey patch gpg signing mechanism
452
452
            bzrlib.gpg.GPGStrategy = bzrlib.gpg.DisabledGPGStrategy
459
459
                              working_tree=wt)
460
460
            branch = Branch.open(self.get_url('.'))
461
461
            self.assertEqual(branch.revision_history(), ['A'])
462
 
            self.failIf(branch.repository.has_revision('B'))
 
462
            self.assertFalse(branch.repository.has_revision('B'))
463
463
        finally:
464
464
            bzrlib.gpg.GPGStrategy = oldstrategy
465
465