]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Fix dangling patches in Cisco and Midonet tests
authorKevin Benton <blak111@gmail.com>
Sat, 12 Apr 2014 21:27:36 +0000 (21:27 +0000)
committerKevin Benton <blak111@gmail.com>
Sun, 13 Apr 2014 00:26:41 +0000 (00:26 +0000)
commite7ca2541b13d9e755f443b866708865ac22a8bd1
tree5f172b114f13cd41139ec891fe6b58dbd1ab8273
parent55fcddc28e24efffe2364a343087b029fce79792
Fix dangling patches in Cisco and Midonet tests

Cisco Nexus Tests:
Explicitly stops the patch to sys.modules immediately
after use to fix sporadic failures caused by the patch
not being handled correctly by mock.patch.stopall.

Midonet Interface Test:
Removes the double-patch of the 'device_exists' method
in ip_lib.

Closes-Bug: #1307025
Closes-Bug: #1307038
Change-Id: Ie22505bb8e406a61e40819d60c76d229916a6e01
neutron/tests/unit/cisco/test_nexus_plugin.py
neutron/tests/unit/test_linux_interface.py