]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Improve usage of MagicMocks in ML2 and L3 tests
authorKevin Benton <blak111@gmail.com>
Tue, 6 May 2014 04:19:08 +0000 (04:19 +0000)
committerKevin Benton <blak111@gmail.com>
Fri, 30 May 2014 04:21:29 +0000 (21:21 -0700)
commit66a24ab397e26963fef99d58f3f8ee2c9a6a52eb
tree0c1cf2f191674a8169127eb8a2e669431fe9bc5d
parente65b06f458f179c50f7b4d4f7ba269d7343ef461
Improve usage of MagicMocks in ML2 and L3 tests

Removes usage of a MagicMock in a case where it's not needed.
Replaces a manual function replacement with a mock.patch call
so it's correctly cleaned up by mock.patch.stopall.

Partial-Bug: #1316401
Change-Id: I8f2f7e9eca2aeaa3b65be1b451e96ed2146950f4
neutron/tests/unit/ml2/test_rpcapi.py
neutron/tests/unit/test_l3_plugin.py