summaryrefslogtreecommitdiffstats
path: root/tests/unit/middleware/test_context.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/middleware/test_context.py')
-rw-r--r--tests/unit/middleware/test_context.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/unit/middleware/test_context.py b/tests/unit/middleware/test_context.py
index 3d48c23..a3c718e 100644
--- a/tests/unit/middleware/test_context.py
+++ b/tests/unit/middleware/test_context.py
@@ -15,16 +15,15 @@
# License for the specific language governing permissions and limitations
# under the License.
-import testtools
-
import mock
import openstack.common.context
from openstack.common.middleware import context
+from tests import utils
-class ContextMiddlewareTest(testtools.TestCase):
+class ContextMiddlewareTest(utils.BaseTestCase):
def test_process_request(self):
req = mock.Mock()
@@ -60,7 +59,7 @@ class ContextMiddlewareTest(testtools.TestCase):
import_class.assert_called_with(mock.sentinel.arg)
-class FilterFactoryTest(testtools.TestCase):
+class FilterFactoryTest(utils.BaseTestCase):
def test_filter_factory(self):
global_conf = dict(sentinel=mock.sentinel.global_conf)