~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_branch.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:
179
179
        source.add('file1')
180
180
        source.commit('added file')
181
181
        out, err = self.run_bzr('branch source target --files-from source')
182
 
        self.failUnlessExists('target/file1')
 
182
        self.assertPathExists('target/file1')
183
183
 
184
184
    def test_branch_files_from_hardlink(self):
185
185
        self.requireFeature(HardlinkFeature)
208
208
    def test_branch_no_tree(self):
209
209
        self.example_branch('source')
210
210
        self.run_bzr('branch --no-tree source target')
211
 
        self.failIfExists('target/hello')
212
 
        self.failIfExists('target/goodbye')
 
211
        self.assertPathDoesNotExist('target/hello')
 
212
        self.assertPathDoesNotExist('target/goodbye')
213
213
 
214
214
    def test_branch_into_existing_dir(self):
215
215
        self.example_branch('a')
225
225
        # force operation
226
226
        self.run_bzr('branch a b --use-existing-dir')
227
227
        # check conflicts
228
 
        self.failUnlessExists('b/hello.moved')
229
 
        self.failIfExists('b/godbye.moved')
 
228
        self.assertPathExists('b/hello.moved')
 
229
        self.assertPathDoesNotExist('b/godbye.moved')
230
230
        # we can't branch into branch
231
231
        out,err = self.run_bzr('branch a b --use-existing-dir', retcode=3)
232
232
        self.assertEqual('', out)