From fbfc1cfab00178b423a8600a5797ecb4b31cd84b Mon Sep 17 00:00:00 2001 From: Petr Malik Date: Sun, 3 May 2015 20:10:42 -0400 Subject: Fix leaked mocks in the 'common' module if any Make all test suites in the module extend 'trove_testtools.TestCase' to enable dangling mock detector. Change-Id: I378878a2e3129c2d694695fbe3bb4174826386be Partial-Bug: 1448273 --- trove/tests/unittests/common/test_wsgi.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'trove/tests/unittests/common/test_wsgi.py') diff --git a/trove/tests/unittests/common/test_wsgi.py b/trove/tests/unittests/common/test_wsgi.py index e335d601..7e8c26b0 100644 --- a/trove/tests/unittests/common/test_wsgi.py +++ b/trove/tests/unittests/common/test_wsgi.py @@ -13,14 +13,13 @@ # License for the specific language governing permissions and limitations # under the License. # -import trove.common.wsgi as wsgi -import webob - -import testtools from testtools.matchers import Equals, Is, Not +from trove.common import wsgi +from trove.tests.unittests import trove_testtools +import webob -class TestWsgi(testtools.TestCase): +class TestWsgi(trove_testtools.TestCase): def test_process_request(self): middleware = wsgi.ContextMiddleware("test_trove") req = webob.BaseRequest({}) -- cgit v1.2.1