def test_commit_return_value(self): |
root = self.root |
testfile = root.join('test.txt').ensure(file=True) |
-> testfile.write('test') |
rev = root.commit('testing') |
assert type(rev) == int |
|
anotherfile = root.join('another.txt').ensure(file=True) |
anotherfile.write('test') |
rev2 = root.commit('testing more') |
assert type(rev2) == int |
assert rev2 == rev + 1 |