summaryrefslogtreecommitdiffstats
path: root/tests/unit/test_plugin.py
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2013-01-28 07:57:04 +0000
committerGerrit Code Review <review@openstack.org>2013-01-28 07:57:04 +0000
commit03dd4e7d4eb751bfad58322600464852942d5af9 (patch)
tree71d4bbb19edf558406d07cd8a917a8ef8c74d0c0 /tests/unit/test_plugin.py
parent73c7cdc65f2c64f49139bbd2bb738635a34316e1 (diff)
parent8c80224ecb5194a5e2ed5f74f1c7f457202d21a3 (diff)
downloadoslo-03dd4e7d4eb751bfad58322600464852942d5af9.tar.gz
oslo-03dd4e7d4eb751bfad58322600464852942d5af9.tar.xz
oslo-03dd4e7d4eb751bfad58322600464852942d5af9.zip
Merge "Replace direct use of testtools BaseTestCase."
Diffstat (limited to 'tests/unit/test_plugin.py')
-rw-r--r--tests/unit/test_plugin.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/unit/test_plugin.py b/tests/unit/test_plugin.py
index efebead..510e915 100644
--- a/tests/unit/test_plugin.py
+++ b/tests/unit/test_plugin.py
@@ -14,13 +14,12 @@
# under the License.
import pkg_resources
-import testtools
from openstack.common import cfg
from openstack.common.notifier import api as notifier_api
from openstack.common.plugin import plugin
from openstack.common.plugin import pluginmanager
-from tests import utils as test_utils
+from tests import utils
class SimpleNotifier(object):
@@ -32,13 +31,13 @@ class SimpleNotifier(object):
self.message_list.append(message)
-class ManagerTestCase(test_utils.BaseTestCase):
+class ManagerTestCase(utils.BaseTestCase):
def test_constructs(self):
manager1 = pluginmanager.PluginManager("testproject", "testservice")
self.assertNotEqual(manager1, False)
-class NotifyTestCase(test_utils.BaseTestCase):
+class NotifyTestCase(utils.BaseTestCase):
"""Test case for the plugin notification interface"""
def test_add_notifier(self):
@@ -100,7 +99,7 @@ class MockExtManager():
self.descriptors.append(descriptor)
-class APITestCase(test_utils.BaseTestCase):
+class APITestCase(utils.BaseTestCase):
"""Test case for the plugin api extension interface"""
def test_add_extension(self):
def mock_load(_s):