Also test case where everything is *really* synced.

This commit is contained in:
Markus Unterwaditzer 2014-04-07 19:45:13 +02:00
parent f758e6d6d8
commit 745afbe5a3

View file

@ -116,6 +116,8 @@ def test_already_synced():
old_status = dict(status) old_status = dict(status)
a.update = b.update = a.upload = b.upload = \ a.update = b.update = a.upload = b.upload = \
lambda *a, **kw: pytest.fail('Method shouldn\'t have been called.') lambda *a, **kw: pytest.fail('Method shouldn\'t have been called.')
for i in (1, 2):
sync(a, b, status) sync(a, b, status)
assert status == old_status assert status == old_status
assert a.has('1.txt') and b.has('1.txt') assert a.has('1.txt') and b.has('1.txt')