summaryrefslogtreecommitdiff
path: root/cinderclient/tests/unit/v2/test_shell.py
diff options
context:
space:
mode:
Diffstat (limited to 'cinderclient/tests/unit/v2/test_shell.py')
-rw-r--r--cinderclient/tests/unit/v2/test_shell.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/cinderclient/tests/unit/v2/test_shell.py b/cinderclient/tests/unit/v2/test_shell.py
index 3364b71..fb8cda7 100644
--- a/cinderclient/tests/unit/v2/test_shell.py
+++ b/cinderclient/tests/unit/v2/test_shell.py
@@ -713,6 +713,15 @@ class ShellTest(utils.TestCase):
self.assert_called('POST', '/types/3/action',
body=expected)
+ def test_type_delete(self):
+ self.run_command('type-delete 1')
+ self.assert_called('DELETE', '/types/1')
+
+ def test_type_delete_multiple(self):
+ self.run_command('type-delete 1 3')
+ self.assert_called_anytime('DELETE', '/types/1')
+ self.assert_called('DELETE', '/types/3')
+
def test_encryption_type_list(self):
"""
Test encryption-type-list shell command.