~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_selftest.py

  • Committer: Martin Pool
  • Date: 2011-04-15 07:01:22 UTC
  • mto: This revision was merged to the branch mainline in revision 5789.
  • Revision ID: mbp@sourcefrog.net-20110415070122-7x24skeadcm7wvut
Switch away from using failUnlessExists and failIfExists

Show diffs side-by-side

added added

removed removed

Lines of Context:
106
106
 
107
107
        filename = u'hell\u00d8'
108
108
        self.build_tree_contents([(filename, 'contents of hello')])
109
 
        self.failUnlessExists(filename)
 
109
        self.assertPathExists(filename)
110
110
 
111
111
 
112
112
class TestClassesAvailable(tests.TestCase):
681
681
    def test_make_branch_builder(self):
682
682
        builder = self.make_branch_builder('dir')
683
683
        rev_id = builder.build_commit()
684
 
        self.failUnlessExists('dir')
 
684
        self.assertPathExists('dir')
685
685
        a_dir = bzrdir.BzrDir.open('dir')
686
686
        self.assertRaises(errors.NoWorkingTree, a_dir.open_workingtree)
687
687
        a_branch = a_dir.open_branch()
703
703
        self.assertIsInstance(result_bzrdir.transport,
704
704
                              memory.MemoryTransport)
705
705
        # should not be on disk, should only be in memory
706
 
        self.failIfExists('subdir')
 
706
        self.assertPathDoesNotExist('subdir')
707
707
 
708
708
 
709
709
class TestChrootedTest(tests.ChrootedTestCase):