From 60f70b0b3996365a889546eb1e4c5c7edc4cfde0 Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Wed, 23 Jan 2013 02:48:21 -0500 Subject: Replaced direct usage of stubout with BaseTestCase. BaseTestCase properly hooks stubout into fixtures. Just use that. Part of blueprint grizzly-testtools. Change-Id: I4bf6b92b9b16d051d8c6ecaf52cf70925848ed8c --- tests/unit/test_rootwrap.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'tests/unit/test_rootwrap.py') diff --git a/tests/unit/test_rootwrap.py b/tests/unit/test_rootwrap.py index 30708d3..e2b4697 100644 --- a/tests/unit/test_rootwrap.py +++ b/tests/unit/test_rootwrap.py @@ -18,19 +18,17 @@ import ConfigParser import logging import logging.handlers import os -import stubout import subprocess -import testtools from openstack.common.rootwrap import filters from openstack.common.rootwrap import wrapper +from tests import utils -class RootwrapTestCase(testtools.TestCase): +class RootwrapTestCase(utils.BaseTestCase): def setUp(self): super(RootwrapTestCase, self).setUp() - self.stubs = stubout.StubOutForTesting() self.filters = [ filters.RegExpFilter("/bin/ls", "root", 'ls', '/[a-z]+'), filters.CommandFilter("/usr/bin/foo_bar_not_exist", "root"), -- cgit