~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to tests/clean_tree.py

  • Committer: Aaron Bentley
  • Date: 2006-07-05 12:54:12 UTC
  • Revision ID: abentley@panoramicfeedback.com-20060705125412-706027d1b9ae57cc
Update clean-tree tests for no global ignores

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
        """Files are selected for deletion appropriately"""
48
48
        os.mkdir('branch')
49
49
        tree = BzrDir.create_standalone_workingtree('branch')
 
50
        f = file('branch/.bzrignore', 'wb')
 
51
        try:
 
52
            f.write('*~\n*.pyc\n.bzrignore\n')
 
53
        finally:
 
54
            f.close()
50
55
        file('branch/file.BASE', 'wb').write('contents')
51
56
        self.assertEqual(len(list(iter_deletables(tree))), 1)
52
57
        file('branch/file~', 'wb').write('contents')