From 5d9cd0e711dae15bccd4012ceed3a8e16cb403e9 Mon Sep 17 00:00:00 2001 From: Takashi Natsume Date: Sun, 11 Sep 2022 13:44:04 +0900 Subject: [PATCH] Fix a wrong assertion method Replace 'has_calls' with 'assert_has_calls'. Change-Id: I0af1e8cd33eb7785aeffa1ac774063303ffbb090 Closes-Bug: 1989268 Signed-off-by: Takashi Natsume --- glance/tests/unit/v2/test_image_data_resource.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glance/tests/unit/v2/test_image_data_resource.py b/glance/tests/unit/v2/test_image_data_resource.py index 6a2f81ec3c..3889c2f631 100644 --- a/glance/tests/unit/v2/test_image_data_resource.py +++ b/glance/tests/unit/v2/test_image_data_resource.py @@ -253,7 +253,7 @@ class TestImagesController(base.StoreClearingUnitTest): mock.call(mock.ANY, 'upload_image', mock.ANY), mock.call(mock.ANY, 'get_image', mock.ANY) ] - mock_enforce.has_calls(expected_call) + mock_enforce.assert_has_calls(expected_call) def test_upload_invalid(self): request = unit_test_utils.get_fake_request()