summaryrefslogtreecommitdiffstats
path: root/tests/unit/test_lockutils.py
diff options
context:
space:
mode:
authorMonty Taylor <mordred@inaugust.com>2013-01-23 09:59:46 -0500
committerMonty Taylor <mordred@inaugust.com>2013-01-24 16:30:26 +1100
commit8c80224ecb5194a5e2ed5f74f1c7f457202d21a3 (patch)
treea557a9524e402e8cd98da702ea805c1cf8d430bb /tests/unit/test_lockutils.py
parent3d2800087ce38ff954c50e5a86916784682ed1bd (diff)
Replace direct use of testtools BaseTestCase.
Using the BaseTestCase across the tests in the tree lets us put in log fixtures and consistently handle mox and stubout. Part of blueprint grizzly-testtools. Change-Id: Iba7eb2c63b0c514009b2c28e5930b27726a147b0
Diffstat (limited to 'tests/unit/test_lockutils.py')
-rw-r--r--tests/unit/test_lockutils.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/unit/test_lockutils.py b/tests/unit/test_lockutils.py
index dc8e413..5d4b7ad 100644
--- a/tests/unit/test_lockutils.py
+++ b/tests/unit/test_lockutils.py
@@ -21,17 +21,16 @@ import select
import shutil
import tempfile
import time
-import testtools
import eventlet
from eventlet import greenpool
from eventlet import greenthread
from openstack.common import lockutils
-from tests import utils as test_utils
+from tests import utils
-class TestFileLocks(test_utils.BaseTestCase):
+class TestFileLocks(utils.BaseTestCase):
def test_concurrent_green_lock_succeeds(self):
"""Verify spawn_n greenthreads with two locks run concurrently."""
tmpdir = tempfile.mkdtemp()
@@ -66,7 +65,7 @@ class TestFileLocks(test_utils.BaseTestCase):
shutil.rmtree(tmpdir)
-class LockTestCase(test_utils.BaseTestCase):
+class LockTestCase(utils.BaseTestCase):
def test_synchronized_wrapped_function_metadata(self):
@lockutils.synchronized('whatever', 'test-')
def foo():