diff options
author | Monty Taylor <mordred@inaugust.com> | 2013-01-23 02:48:21 -0500 |
---|---|---|
committer | Monty Taylor <mordred@inaugust.com> | 2013-01-24 16:30:22 +1100 |
commit | 60f70b0b3996365a889546eb1e4c5c7edc4cfde0 (patch) | |
tree | 69bdf81b14944f3400182fd508538012570f5e3e /tests/unit/test_rootwrap.py | |
parent | a14c212795b59c67d6e5cde052e659743eae2b9f (diff) | |
download | oslo-60f70b0b3996365a889546eb1e4c5c7edc4cfde0.tar.gz oslo-60f70b0b3996365a889546eb1e4c5c7edc4cfde0.tar.xz oslo-60f70b0b3996365a889546eb1e4c5c7edc4cfde0.zip |
Replaced direct usage of stubout with BaseTestCase.
BaseTestCase properly hooks stubout into fixtures. Just use that.
Part of blueprint grizzly-testtools.
Change-Id: I4bf6b92b9b16d051d8c6ecaf52cf70925848ed8c
Diffstat (limited to 'tests/unit/test_rootwrap.py')
-rw-r--r-- | tests/unit/test_rootwrap.py | 6 |
1 files changed, 2 insertions, 4 deletions
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"), |