~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to tests/is_clean.py

  • Committer: Aaron Bentley
  • Date: 2007-06-18 23:52:33 UTC
  • Revision ID: abentley@panoramicfeedback.com-20070618235233-7ick9errjikvy4di
Fix no-collapse behavior

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
import os.path
2
2
 
3
 
from bzrlib import tests
 
3
from bzrlib import add, tests
4
4
from bzrlib.plugins.bzrtools.bzrtools import is_clean
5
5
 
6
6
class TestIsClean(tests.TestCaseWithTransport):
11
11
        fooname = os.path.join(tree.basedir, "foo")
12
12
        file(fooname, "wb").write("bar")
13
13
        self.assertEqual((True, [u'foo']), is_clean(tree))
14
 
        tree.smart_add([tree.basedir])
 
14
        add.smart_add_tree(tree, [tree.basedir])
15
15
        self.assertEqual((False, []), is_clean(tree))
16
16
        tree.commit("added file", rev_id='commit-id')
17
17
        self.assertEqual((True, []), is_clean(tree))