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/217031 /git.openstack. org/cgit/ openstack/ glance_ store/commit/ ?id=652a5bb4341 ae8dc3eab05a1d2 154d11f1bc32f0
Committed: https:/
Submitter: Jenkins
Branch: stable/kilo
commit 652a5bb4341ae8d c3eab05a1d2154d 11f1bc32f0
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