From 745afbe5a3959ea1388df7ee73b1361181ae33df Mon Sep 17 00:00:00 2001 From: Markus Unterwaditzer Date: Mon, 7 Apr 2014 19:45:13 +0200 Subject: [PATCH] Also test case where everything is *really* synced. --- tests/test_sync.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/test_sync.py b/tests/test_sync.py index 451881b..df229ca 100644 --- a/tests/test_sync.py +++ b/tests/test_sync.py @@ -116,9 +116,11 @@ def test_already_synced(): old_status = dict(status) a.update = b.update = a.upload = b.upload = \ lambda *a, **kw: pytest.fail('Method shouldn\'t have been called.') - sync(a, b, status) - assert status == old_status - assert a.has('1.txt') and b.has('1.txt') + + for i in (1, 2): + sync(a, b, status) + assert status == old_status + assert a.has('1.txt') and b.has('1.txt') def test_conflict_resolution_both_etags_new():