Fix failures introduced by the new version of mock
This reverts commit 1b60df85ba3ad442c2e4e7e52538e1b9a1bf9378.
The new version of mock is now released which has the fix to
make mock.patch.stopall behave deterministically. The code to
stop double-mocking is no longer required.
Other fixes:
'assert_has_calls' that have changed behavior in the new version
(no longer accepts single calls).
Calls to non-existent assert methods that did not exist and were
silently passing.
Use of autospec on a class with decorated functions.
Reviewed: https:/ /review. openstack. org/200420 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=3a871a73b88 f8b75d64c88271b 6fc6cdd4b1cfc0
Committed: https:/
Submitter: Jenkins
Branch: master
commit 3a871a73b88f8b7 5d64c88271b6fc6 cdd4b1cfc0
Author: Kevin Benton <email address hidden>
Date: Thu Jul 9 16:54:23 2015 -0700
Fix failures introduced by the new version of mock
This reverts commit 1b60df85ba3ad44 2c2e4e7e52538e1 b9a1bf9378.
The new version of mock is now released which has the fix to
make mock.patch.stopall behave deterministically. The code to
stop double-mocking is no longer required.
Other fixes:
'assert_ has_calls' that have changed behavior in the new version
(no longer accepts single calls).
Calls to non-existent assert methods that did not exist and were
silently passing.
Use of autospec on a class with decorated functions.
Closes-Bug: #1473369 0f0229ec3c5071f 7a470445c98
Change-Id: I164a9af2a7f9ac