]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Fix failures introduced by the new version of mock
authorKevin Benton <blak111@gmail.com>
Thu, 9 Jul 2015 23:54:23 +0000 (16:54 -0700)
committerKevin Benton <blak111@gmail.com>
Fri, 10 Jul 2015 00:54:32 +0000 (17:54 -0700)
commit3a871a73b88f8b75d64c88271b6fc6cdd4b1cfc0
treeed28eaa7d2e0a3df1f2f082f8947006aaf2d2ec6
parent043f6c3091192f721f0181fbcfa8eec361730fdc
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.

Closes-Bug: #1473369
Change-Id: I164a9af2a7f9ac0f0229ec3c5071f7a470445c98
neutron/tests/base.py
neutron/tests/unit/agent/linux/test_async_process.py
neutron/tests/unit/agent/linux/test_daemon.py
neutron/tests/unit/agent/linux/test_external_process.py
neutron/tests/unit/agent/linux/test_interface.py
neutron/tests/unit/agent/linux/test_polling.py
neutron/tests/unit/api/rpc/handlers/test_dhcp_rpc.py
neutron/tests/unit/services/metering/agents/test_metering_agent.py