Merge "Add tests for delete type by name"

This commit is contained in:
Jenkins 2016-04-07 13:42:00 +00:00 committed by Gerrit Code Review
commit 456bf5fce9

View File

@ -722,6 +722,11 @@ class ShellTest(utils.TestCase):
self.assert_called_anytime('DELETE', '/types/1')
self.assert_called('DELETE', '/types/3')
def test_type_delete_by_name(self):
self.run_command('type-delete test-type-1')
self.assert_called_anytime('GET', '/types?is_public=None')
self.assert_called('DELETE', '/types/1')
def test_encryption_type_list(self):
"""
Test encryption-type-list shell command.