/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: Vincent Ladeuil
  • Date: 2011-05-12 20:26:05 UTC
  • mto: (5853.1.2 trunk) (5609.38.1 2.3)
  • mto: This revision was merged to the branch mainline in revision 5861.
  • Revision ID: v.ladeuil+lp@free.fr-20110512202605-whwfrkgddrxv1exm
Backport fix for deprecated test methods (failIf, failUnless, etc)

Show diffs side-by-side

added added

removed removed

Lines of Context:
381
381
        wt = self.make_branch_and_tree('.')
382
382
        branch = wt.branch
383
383
        wt.commit("base", allow_pointless=True, rev_id='A')
384
 
        self.failIf(branch.repository.has_signature_for_revision_id('A'))
 
384
        self.assertFalse(branch.repository.has_signature_for_revision_id('A'))
385
385
        try:
386
386
            from bzrlib.testament import Testament
387
387
            # monkey patch gpg signing mechanism
405
405
        wt = self.make_branch_and_tree('.')
406
406
        branch = wt.branch
407
407
        wt.commit("base", allow_pointless=True, rev_id='A')
408
 
        self.failIf(branch.repository.has_signature_for_revision_id('A'))
 
408
        self.assertFalse(branch.repository.has_signature_for_revision_id('A'))
409
409
        try:
410
410
            from bzrlib.testament import Testament
411
411
            # monkey patch gpg signing mechanism
419
419
                              working_tree=wt)
420
420
            branch = Branch.open(self.get_url('.'))
421
421
            self.assertEqual(branch.revision_history(), ['A'])
422
 
            self.failIf(branch.repository.has_revision('B'))
 
422
            self.assertFalse(branch.repository.has_revision('B'))
423
423
        finally:
424
424
            bzrlib.gpg.GPGStrategy = oldstrategy
425
425