Zero mock warning call count after setting three checkpoints

_setup_three_checkpoints may generate warnings that are not being tested
in test_rollback_too_many; just the ones directly from
rollback_checkpoints are.
This commit is contained in:
Ville Skyttä
2016-07-22 09:54:29 +03:00
parent c7b89c334b
commit 0fb0a662e3
+1 -1
View File
@@ -362,8 +362,8 @@ class TestFullCheckpointsReverter(unittest.TestCase):
self.assertEqual(mock_logger.warning.call_count, 1)
# Test Generic warning
mock_logger.warning.call_count = 0
self._setup_three_checkpoints()
mock_logger.warning.call_count = 0
self.reverter.rollback_checkpoints(4)
self.assertEqual(mock_logger.warning.call_count, 1)