~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/workingtree_implementations/test_remove.py

  • Committer: Alexander Belchenko
  • Date: 2007-11-19 22:54:30 UTC
  • mfrom: (3006 +trunk)
  • mto: This revision was merged to the branch mainline in revision 3008.
  • Revision ID: bialix@ukr.net-20071119225430-x0ewosrsagis0yno
merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
273
273
        tree.remove('dir/', keep_files=False)
274
274
        self.failIfExists('tree/dir/file')
275
275
        self.assertNotInWorkingTree('tree/dir/file', 'tree')
 
276
 
 
277
    def test_remove_uncommitted_removed_file(self):
 
278
        # As per bug #152811
 
279
        tree = self.get_committed_tree(['a'])
 
280
        tree.remove('a', keep_files=False)
 
281
        tree.remove('a', keep_files=False)
 
282
        self.failIfExists('a')
 
283
 
 
284
    def test_remove_file_and_containing_dir(self):
 
285
        tree = self.get_committed_tree(['config/', 'config/file'])
 
286
        tree.remove('config/file', keep_files=False)
 
287
        tree.remove('config', keep_files=False)
 
288
        self.failIfExists('config/file')
 
289
        self.failIfExists('config')