diff options
| author | Josh Kearney <josh@jk0.org> | 2013-01-24 12:33:17 -0600 |
|---|---|---|
| committer | Dean Troyer <dtroyer@gmail.com> | 2013-01-28 17:58:59 -0600 |
| commit | 4297e5781b03bad1c67cfdaa6cfdb73f6d1385de (patch) | |
| tree | faa7b3e386293f188b94b3e2d0c48b52cc832d08 /tests/test_shell.py | |
| parent | 1bb59c53ee8181ece69bed783d6563d8f74a78ad (diff) | |
| download | python-openstackclient-4297e5781b03bad1c67cfdaa6cfdb73f6d1385de.tar.gz | |
First pass at adding compute unit tests.
Change-Id: Icf3340d457f75eec89bb0e5c9b4b953c3b81020f
Diffstat (limited to 'tests/test_shell.py')
| -rw-r--r-- | tests/test_shell.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/test_shell.py b/tests/test_shell.py index cf4fc924..87a7795a 100644 --- a/tests/test_shell.py +++ b/tests/test_shell.py @@ -13,10 +13,10 @@ # under the License. # +import fixtures import os import mock -import fixtures from openstackclient import shell as os_shell from tests import utils @@ -47,8 +47,7 @@ def make_shell(): return _shell -class ShellTest(utils.TestCase): - +class TestShell(utils.TestCase): FAKE_ENV = { 'OS_AUTH_URL': DEFAULT_AUTH_URL, 'OS_TENANT_ID': DEFAULT_TENANT_ID, @@ -60,7 +59,7 @@ class ShellTest(utils.TestCase): def setUp(self): """ Patch os.environ to avoid required auth info""" - super(ShellTest, self).setUp() + super(TestShell, self).setUp() for var in self.FAKE_ENV: self.useFixture( fixtures.EnvironmentVariable( @@ -85,7 +84,7 @@ class ShellTest(utils.TestCase): def tearDown(self): #self.auth_patch.stop() self.cmd_patch.stop() - super(ShellTest, self).tearDown() + super(TestShell, self).tearDown() def test_shell_args(self): sh = make_shell() |
