Skip to content

Commit 3224e05

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Fix a wrong assertion method"
2 parents dc11640 + 5d9cd0e commit 3224e05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

glance/tests/unit/v2/test_image_data_resource.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ def test_upload_image_forbidden(self, mock_enforce):
253253
mock.call(mock.ANY, 'upload_image', mock.ANY),
254254
mock.call(mock.ANY, 'get_image', mock.ANY)
255255
]
256-
mock_enforce.has_calls(expected_call)
256+
mock_enforce.assert_has_calls(expected_call)
257257

258258
def test_upload_invalid(self):
259259
request = unit_test_utils.get_fake_request()

0 commit comments

Comments
 (0)