/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to tests/test_generic_processor.py

  • Committer: Ian Clatworthy
  • Date: 2009-08-21 13:12:22 UTC
  • mto: (0.64.214 trunk)
  • mto: This revision was merged to the branch mainline in revision 6631.
  • Revision ID: ian.clatworthy@canonical.com-20090821131222-pbzdbm68hb322nb6
update existing tests to reflect implicit directory pruning bahaviour

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
 
38
38
    def get_handler(self):
39
39
        branch = self.make_branch('.', format=self.branch_format)
40
 
        handler = generic_processor.GenericProcessor(branch.bzrdir,
41
 
            prune_empty_dirs=False)
 
40
        handler = generic_processor.GenericProcessor(branch.bzrdir)
42
41
        return handler, branch
43
42
 
44
43
    # FIXME: [] as a default is bad, as it is mutable, but I want
407
406
        revtree0, revtree1 = self.assertChanges(branch, 1,
408
407
            expected_added=[('a',), (path,)])
409
408
        revtree1, revtree2 = self.assertChanges(branch, 2,
410
 
            expected_removed=[(path,)])
 
409
            expected_removed=[('a',), (path,)])
411
410
        self.assertContent(branch, revtree1, path, "aaa")
412
411
 
413
412
    def test_delete_symlink_in_root(self):
426
425
        revtree0, revtree1 = self.assertChanges(branch, 1,
427
426
            expected_added=[('a',), (path,)])
428
427
        revtree1, revtree2 = self.assertChanges(branch, 2,
429
 
            expected_removed=[(path,)])
 
428
            expected_removed=[('a',), (path,)])
430
429
        self.assertSymlinkTarget(branch, revtree1, path, "aaa")
431
430
 
432
431
 
511
510
        old_path = 'a/a'
512
511
        new_path = 'b/a'
513
512
        handler.process(self.get_command_iter(old_path, new_path))
514
 
        self.assertChanges(branch, 2, expected_renamed=[(old_path, new_path)],
515
 
            expected_added=[('b',)])
 
513
        self.assertChanges(branch, 2,
 
514
            expected_renamed=[(old_path, new_path)],
 
515
            expected_added=[('b',)],
 
516
            expected_removed=[('a',)])
516
517
 
517
518
 
518
519
class TestImportToPackRenameTricky(TestCaseForGenericProcessor):