~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/per_workingtree/test_move.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:
174
174
                               ('b/c', 'c-id')], tree)
175
175
        self.assertTreeLayout([('', root_id), ('a', 'a-id'), ('b', 'b-id'),
176
176
                               ('b/c', 'c-id')], tree.basis_tree())
177
 
        self.failIfExists('a')
 
177
        self.assertPathDoesNotExist('a')
178
178
        self.assertFileEqual(a_contents, 'b/a')
179
179
        tree._validate()
180
180
 
191
191
                               ('c', 'c-id')], tree)
192
192
        self.assertTreeLayout([('', root_id), ('a', 'a-id'), ('b', 'b-id'),
193
193
                               ('b/c', 'c-id')], tree.basis_tree())
194
 
        self.failIfExists('b/c')
 
194
        self.assertPathDoesNotExist('b/c')
195
195
        self.assertFileEqual(c_contents, 'c')
196
196
        tree._validate()
197
197
 
210
210
            self.assertTreeLayout([('', root_id), ('a', 'a-id'), ('b', 'b-id'),
211
211
                                   ('c', 'c-id')], tree)
212
212
        else:
213
 
            self.failUnlessExists('b/c')
 
213
            self.assertPathExists('b/c')
214
214
            self.assertTreeLayout([('', root_id), ('a', 'a-id'), ('b', 'b-id'),
215
215
                                   ('b/c', 'c-id')], tree)
216
216
        self.assertTreeLayout([('', root_id), ('a', 'a-id'), ('b', 'b-id'),