~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_lockdir.py

  • Committer: Martin Pool
  • Date: 2011-04-14 07:53:38 UTC
  • mto: This revision was merged to the branch mainline in revision 5788.
  • Revision ID: mbp@sourcefrog.net-20110414075338-0cwknb7zokfouzwj
Stop using failIf, failUnless, etc

Show diffs side-by-side

added added

removed removed

Lines of Context:
403
403
        lf1 = LockDir(t, 'test_lock')
404
404
 
405
405
        lf1.create()
406
 
        self.failUnless(t.has('test_lock'))
 
406
        self.assertTrue(t.has('test_lock'))
407
407
 
408
408
        t.rmdir('test_lock')
409
 
        self.failIf(t.has('test_lock'))
 
409
        self.assertFalse(t.has('test_lock'))
410
410
 
411
411
        # This will create 'test_lock' if it needs to
412
412
        lf1.lock_write()
413
 
        self.failUnless(t.has('test_lock'))
414
 
        self.failUnless(t.has('test_lock/held/info'))
 
413
        self.assertTrue(t.has('test_lock'))
 
414
        self.assertTrue(t.has('test_lock/held/info'))
415
415
 
416
416
        lf1.unlock()
417
 
        self.failIf(t.has('test_lock/held/info'))
 
417
        self.assertFalse(t.has('test_lock/held/info'))
418
418
 
419
419
    def test__format_lock_info(self):
420
420
        ld1 = self.get_lock()