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>
This commit is contained in:
@@ -253,7 +253,7 @@ class TestImagesController(base.StoreClearingUnitTest):
|
|||||||
mock.call(mock.ANY, 'upload_image', mock.ANY),
|
mock.call(mock.ANY, 'upload_image', mock.ANY),
|
||||||
mock.call(mock.ANY, 'get_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):
|
def test_upload_invalid(self):
|
||||||
request = unit_test_utils.get_fake_request()
|
request = unit_test_utils.get_fake_request()
|
||||||
|
|||||||
Reference in New Issue
Block a user