diff --git a/octavia/tests/unit/controller/worker/v2/tasks/test_database_tasks.py b/octavia/tests/unit/controller/worker/v2/tasks/test_database_tasks.py index 13472e08f7..48000554e4 100644 --- a/octavia/tests/unit/controller/worker/v2/tasks/test_database_tasks.py +++ b/octavia/tests/unit/controller/worker/v2/tasks/test_database_tasks.py @@ -1424,7 +1424,7 @@ class TestDatabaseTasks(base.TestCase): provisioning_status=constants.ERROR) ]) self.assertEqual(2, repo.HealthMonitorRepository.update.call_count) - repo.HealthMonitorRepository.update.has_calls( + repo.HealthMonitorRepository.update.assert_has_calls( [mock.call(mock_session, health_monitor.id, provisioning_status=constants.ERROR)]) self.assertEqual(1, repo.L7PolicyRepository.update.call_count)