This was never a real part of the mock api, but mock was happily mocking
it out and letting the tests pass. The new mock release made this
behaviour break, causing tests to fail on all patches. This patch
replaces instances of assert_called_once with an assert of the mock's
call_count.
Reviewed: https:/ /review. openstack. org/200604 /git.openstack. org/cgit/ openstack/ glance_ store/commit/ ?id=ec025eb9e55 02d9111b32dc536 0a4bd5d9aff8eb
Committed: https:/
Submitter: Jenkins
Branch: master
commit ec025eb9e5502d9 111b32dc5360a4b d5d9aff8eb
Author: Mike Fedosin <email address hidden>
Date: Fri Jul 10 18:55:46 2015 +0300
Remove usage of assert_called_once in mocks
This was never a real part of the mock api, but mock was happily mocking
it out and letting the tests pass. The new mock release made this
behaviour break, causing tests to fail on all patches. This patch
replaces instances of assert_called_once with an assert of the mock's
call_count.
Change-Id: I41ea0456acda86 147ce3a7da0311e 926782b4542
Closes-Bug: #1473369