From 827547a0b3da411441bf691ddbc94867001a3311 Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Tue, 22 Jan 2013 19:54:57 -0500 Subject: Use testtools as test base class. On the path to testr migration, we need to replace the unittest base classes with testtools. Replace tearDown with addCleanup, addCleanup is more resilient than tearDown. The fixtures library has excellent support for managing and cleaning tempfiles. Use it. Replace skip_ with testtools.skipTest Part of blueprint grizzly-testtools. Change-Id: I45e11bbb1ff9b31f3278d3b016737dcb7850cd98 --- tests/unit/test_cliutils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/unit/test_cliutils.py') diff --git a/tests/unit/test_cliutils.py b/tests/unit/test_cliutils.py index 49339a0..c9ab0f5 100644 --- a/tests/unit/test_cliutils.py +++ b/tests/unit/test_cliutils.py @@ -14,12 +14,12 @@ # License for the specific language governing permissions and limitations # under the License. -import unittest +import testtools from openstack.common.cliutils import * -class ValidateArgsTest(unittest.TestCase): +class ValidateArgsTest(testtools.TestCase): def test_lambda_no_args(self): validate_args(lambda: None) -- cgit