summaryrefslogtreecommitdiff
path: root/glanceclient/tests/unit/test_shell.py
diff options
context:
space:
mode:
authorzwei <leidong@unitedstack.com>2016-03-17 18:35:08 +0800
committerStuart McLaren <stuart.mclaren@hp.com>2016-03-30 12:37:28 +0000
commit444ffbeaa9c110b2bd79b93800bd9a24b38bb725 (patch)
tree25bac32ccebd9bda32ad14b7ede5a39564d6cb89 /glanceclient/tests/unit/test_shell.py
parent22a03fd475d1807dee41b24291862f1bdc361273 (diff)
downloadpython-glanceclient-444ffbeaa9c110b2bd79b93800bd9a24b38bb725.tar.gz
Fix v2 so that you can see the default help info
you can see the default help informatiion is v2 subcommand information if input glance command Co-Authored-By: Stuart McLaren <stuart.mclaren@hp.com> Closes-bug: #1563649 Change-Id: I7d227f3e68aa555b2e25848618f76df4872af35d
Diffstat (limited to 'glanceclient/tests/unit/test_shell.py')
-rw-r--r--glanceclient/tests/unit/test_shell.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/glanceclient/tests/unit/test_shell.py b/glanceclient/tests/unit/test_shell.py
index 2a33dc0..fb2ca9b 100644
--- a/glanceclient/tests/unit/test_shell.py
+++ b/glanceclient/tests/unit/test_shell.py
@@ -523,9 +523,14 @@ class ShellTest(testutils.TestCase):
except SystemExit:
self.fail('Unexpected SystemExit')
- # We expect the normal usage as a result
- self.assertIn('Command-line interface to the OpenStack Images API',
- sys.stdout.getvalue())
+ # We expect the normal v2 usage as a result
+ expected = ['Command-line interface to the OpenStack Images API',
+ 'image-list',
+ 'image-deactivate',
+ 'location-add']
+ for output in expected:
+ self.assertIn(output,
+ sys.stdout.getvalue())
class ShellTestWithKeystoneV3Auth(ShellTest):