diff options
author | Petr Malik <pmalik@tesora.com> | 2015-05-03 20:10:42 -0400 |
---|---|---|
committer | Petr Malik <pmalik@tesora.com> | 2015-05-06 15:21:57 -0400 |
commit | fbfc1cfab00178b423a8600a5797ecb4b31cd84b (patch) | |
tree | 8be65b7c2aef4b93e3ab1cdb876c6a5c357d99c1 /trove/tests/unittests/common/test_wsgi.py | |
parent | b1cf32ba5b0874914d6f8d1413df69e95b06c3f6 (diff) | |
download | trove-fbfc1cfab00178b423a8600a5797ecb4b31cd84b.tar.gz |
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
Diffstat (limited to 'trove/tests/unittests/common/test_wsgi.py')
-rw-r--r-- | trove/tests/unittests/common/test_wsgi.py | 9 |
1 files changed, 4 insertions, 5 deletions
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({}) |