diff --git a/tests/db/sync/test_init.py b/tests/db/sync/test_init.py index d23ab9e3c97b19bb70bb9b67aa2b4e648c1a4501..14066530346ea88dc147d2903b77c97e27d23490 100644 --- a/tests/db/sync/test_init.py +++ b/tests/db/sync/test_init.py @@ -36,12 +36,12 @@ class SynchronizerTests(TestCase): synchronizer = sync.Synchronizer(self.local_engine, self.remote_engines) with patch.object(synchronizer, 'sleep') as sleep: - with patch.object(synchronizer, 'synchronize_changes') as synchronize_changes: + with patch.object(synchronizer, 'synchronize') as synchronize: - synchronize_changes.side_effect = [1, 2, 3, FakeOperationalError(True), + synchronize.side_effect = [1, 2, 3, FakeOperationalError(True), 5, 6, 7, FakeOperationalError(False)] self.assertRaises(FakeOperationalError, synchronizer.loop) - self.assertEqual(synchronize_changes.call_count, 8) + self.assertEqual(synchronize.call_count, 8) self.assertEqual(sleep.call_args_list, [ call(3), call(3), call(3), call(5), call(3), call(3), call(3), call(3)])