Merge "Use assert_called_once_with in test_cleanup_cleanwait_timeout"

This commit is contained in:
Jenkins 2016-06-15 19:41:20 +00:00 committed by Gerrit Code Review
commit 823582c730

View File

@ -599,7 +599,8 @@ class ErrorHandlersTestCase(tests_base.TestCase):
conductor_utils.cleanup_cleanwait_timeout(self.task)
self.assertEqual({}, self.node.clean_step)
self.assertNotIn('clean_step_index', self.node.driver_internal_info)
self.task.process_event.assert_called_once()
self.task.process_event.assert_called_once_with('fail',
target_state=None)
self.assertTrue(self.node.maintenance)
self.assertEqual(clean_error, self.node.maintenance_reason)