summaryrefslogtreecommitdiff
path: root/glanceclient/tests/unit/v2/test_shell_v2.py
diff options
context:
space:
mode:
Diffstat (limited to 'glanceclient/tests/unit/v2/test_shell_v2.py')
-rw-r--r--glanceclient/tests/unit/v2/test_shell_v2.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/glanceclient/tests/unit/v2/test_shell_v2.py b/glanceclient/tests/unit/v2/test_shell_v2.py
index 9d38416..c24a1c9 100644
--- a/glanceclient/tests/unit/v2/test_shell_v2.py
+++ b/glanceclient/tests/unit/v2/test_shell_v2.py
@@ -368,6 +368,12 @@ class ShellV2Test(testtools.TestCase):
{}, ['ID', 'Name', 'Disk_format', 'Container_format',
'Size', 'Status', 'Owner'])
+ def test_do_image_list_verbose_cmd(self):
+ self._run_command('--os-image-api-version 2 --verbose image-list')
+ utils.print_list.assert_called_once_with(
+ mock.ANY, ['ID', 'Name', 'Disk_format', 'Container_format',
+ 'Size', 'Status', 'Owner'])
+
def test_do_image_list_with_include_stores_true(self):
input = {
'limit': None,