~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_inv.py

(mbp) stop using failIf, failUnless, etc (Martin Pool)

Show diffs side-by-side

added added

removed removed

Lines of Context:
654
654
 
655
655
    def test_file_has_text(self):
656
656
        file = inventory.InventoryFile('123', 'hello.c', ROOT_ID)
657
 
        self.failUnless(file.has_text())
 
657
        self.assertTrue(file.has_text())
658
658
 
659
659
    def test_directory_has_text(self):
660
660
        dir = inventory.InventoryDirectory('123', 'hello.c', ROOT_ID)
661
 
        self.failIf(dir.has_text())
 
661
        self.assertFalse(dir.has_text())
662
662
 
663
663
    def test_link_has_text(self):
664
664
        link = inventory.InventoryLink('123', 'hello.c', ROOT_ID)
665
 
        self.failIf(link.has_text())
 
665
        self.assertFalse(link.has_text())
666
666
 
667
667
    def test_make_entry(self):
668
668
        self.assertIsInstance(inventory.make_entry("file", "name", ROOT_ID),