4
4
from bzrlib.plugins.bzrtools.bzrtools import is_clean
6
6
class TestIsClean(tests.TestCaseWithTransport):
9
9
tree = self.make_branch_and_tree('.')
10
10
self.assertEqual((True, []), is_clean(tree))
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))
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))