| 387 |
| 388 |
| 389 |
| 390 |
| 391 |
| 392 |
| 393 |
| 394 |
| 395 |
| 396 |
| 397 |
| 398 | |
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 | |