summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Natsume <takanattie@gmail.com>2022-09-11 13:44:04 +0900
committerTakashi Natsume <takanattie@gmail.com>2022-09-11 10:18:29 +0000
commit5d9cd0e711dae15bccd4012ceed3a8e16cb403e9 (patch)
tree58a0be28ccd6c4beca6a08b082a1adcdcf599f51
parentd7db4e56231059a15d4451c0eaa417c9375162a7 (diff)
downloadglance-5d9cd0e711dae15bccd4012ceed3a8e16cb403e9.tar.gz
Fix a wrong assertion method
Replace 'has_calls' with 'assert_has_calls'. Change-Id: I0af1e8cd33eb7785aeffa1ac774063303ffbb090 Closes-Bug: 1989268 Signed-off-by: Takashi Natsume <takanattie@gmail.com>
-rw-r--r--glance/tests/unit/v2/test_image_data_resource.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/glance/tests/unit/v2/test_image_data_resource.py b/glance/tests/unit/v2/test_image_data_resource.py
index 6a2f81ec3..3889c2f63 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()