]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
BigSwitch: Stop HTTP patch before overriding
authorKevin Benton <blak111@gmail.com>
Tue, 8 Apr 2014 03:25:23 +0000 (20:25 -0700)
committerKevin Benton <blak111@gmail.com>
Tue, 8 Apr 2014 03:45:06 +0000 (20:45 -0700)
commitb12e38327af83f44cc8e38a23d16bb51a2346f57
treeda624c7bfc0fd2a9fc7245d2653c805252422771
parent26857d5bde72b19d789ed5caa2ea4b6f6750676b
BigSwitch: Stop HTTP patch before overriding

Stops the default HTTPConnection patch used by the
Big Switch tests before patching HTTPConnection with
another substitution. This prevents mock from losing
track of the default patch which was resulting in it
not consistently being stopped by the stopall call in
cleanup.

This also corrects an incorrectly targeted mock for the
HTTP patch in one of the test files.

Closes-Bug: #1303605
Change-Id: Ia5b374c5f8d3a7905d915de4f1f8d4f3a6f0e58d
neutron/tests/unit/bigswitch/test_capabilities.py
neutron/tests/unit/bigswitch/test_router_db.py