summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Sergeyev <vsergeyev@mirantis.com>2014-04-15 13:05:35 +0300
committerVictor Sergeyev <vsergeyev@mirantis.com>2014-04-15 13:05:35 +0300
commita31d3f01dcbb5635a31b99b1db22099f6cda4135 (patch)
treea3c077952125927d854ddaadd2b3cef7ce492794
parent423a040e3dcbd12c229da57e91ac47805d69cc7a (diff)
downloadoslo-i18n-a31d3f01dcbb5635a31b99b1db22099f6cda4135.tar.gz
Use oslotest instead of common test module
Module openstack.common.test is obsolete, so we should use oslotest library instead of it. Modified tests and common database code, new requirement added. Change-Id: I853e548f11a4c3785eaf75124510a6d789536634
-rw-r--r--tests/unit/test_gettext.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/unit/test_gettext.py b/tests/unit/test_gettext.py
index 61b6226..faf5dc3 100644
--- a/tests/unit/test_gettext.py
+++ b/tests/unit/test_gettext.py
@@ -19,18 +19,18 @@ import logging
from babel import localedata
import mock
+from oslotest import base as test_base
import six
import testtools
from openstack.common.fixture import moxstubout
from openstack.common import gettextutils
-from openstack.common import test
from tests.unit import fakes
LOG = logging.getLogger(__name__)
-class GettextTest(test.BaseTestCase):
+class GettextTest(test_base.BaseTestCase):
def setUp(self):
super(GettextTest, self).setUp()
@@ -169,7 +169,7 @@ class GettextTest(test.BaseTestCase):
self.assertEqual(es_translation, gettextutils.translate(obj, 'es'))
-class MessageTestCase(test.BaseTestCase):
+class MessageTestCase(test_base.BaseTestCase):
"""Unit tests for locale Message class."""
@staticmethod
@@ -661,7 +661,7 @@ class MessageTestCase(test.BaseTestCase):
self.assertEqual(fr_translation, msg.translate('fr'))
-class TranslationHandlerTestCase(test.BaseTestCase):
+class TranslationHandlerTestCase(test_base.BaseTestCase):
def setUp(self):
super(TranslationHandlerTestCase, self).setUp()
@@ -740,7 +740,7 @@ class TranslationHandlerTestCase(test.BaseTestCase):
self.assertIn(translation, self.stream.getvalue())
-class LogLevelTranslationsTest(test.BaseTestCase):
+class LogLevelTranslationsTest(test_base.BaseTestCase):
scenarios = [
(level, {'level': level})