From 8c80224ecb5194a5e2ed5f74f1c7f457202d21a3 Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Wed, 23 Jan 2013 09:59:46 -0500 Subject: 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 --- tests/unit/test_lockutils.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'tests/unit/test_lockutils.py') 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(): -- cgit