~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_rmbranch.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:
42
42
        self.run_bzr('rmbranch a')
43
43
        dir = bzrdir.BzrDir.open('a')
44
44
        self.assertFalse(dir.has_branch())
45
 
        self.failUnlessExists('a/hello')
46
 
        self.failUnlessExists('a/goodbye')
 
45
        self.assertPathExists('a/hello')
 
46
        self.assertPathExists('a/goodbye')
47
47
 
48
48
    def test_no_branch(self):
49
49
        # No branch in the current directory.