]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Stop mock patches by default in base test class
authorKevin Benton <blak111@gmail.com>
Mon, 10 Mar 2014 20:49:51 +0000 (20:49 +0000)
committerKevin Benton <blak111@gmail.com>
Wed, 12 Mar 2014 02:20:16 +0000 (02:20 +0000)
commit1dfd65f4cff1133cff45e103083fc3ae3130877b
tree9bfcc7cc42de4006f4b712e3e22754077bfa3232
parentb23f8ebb6192ad82d0df8c6b099d6bee64f056c2
Stop mock patches by default in base test class

Adds a mock.patch.stopall to the base unit test
case cleanup routines to stop patches by default
in unit tests. This behavior can be overwritten
by setting an attribute on the test class if
required.

Also removes the explicit stops in the Cisco n1kv,
VMware, and NEC unit tests to leverage the new
automatic cleanup.

Closes-Bug: #1290550
Change-Id: Ic642430a765ea8deb07ebd88b619da58a58e0edd
neutron/tests/base.py
neutron/tests/unit/cisco/n1kv/test_n1kv_plugin.py
neutron/tests/unit/nec/test_nec_plugin.py
neutron/tests/unit/test_servicetype.py
neutron/tests/unit/vmware/extensions/test_maclearning.py
neutron/tests/unit/vmware/test_nsx_plugin.py