summaryrefslogtreecommitdiff
path: root/openstackclient/tests/image
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-06-17 06:24:35 +0000
committerGerrit Code Review <review@openstack.org>2016-06-17 06:24:35 +0000
commit1464c8a23755f70bb60ed37abe1edf5c7e0b7203 (patch)
treebf50f9e53bbcc4b79a128af3bf00228928d0994f /openstackclient/tests/image
parent2740291f491804be5f521770ee773fa62894e8a3 (diff)
parent8a12a39ece3882af56b42898ffee0d537c96edc8 (diff)
downloadpython-openstackclient-1464c8a23755f70bb60ed37abe1edf5c7e0b7203.tar.gz
Merge "Make set/unset command in identity and image pass normally when nothing specified"
Diffstat (limited to 'openstackclient/tests/image')
-rw-r--r--openstackclient/tests/image/v2/test_image.py26
1 files changed, 26 insertions, 0 deletions
diff --git a/openstackclient/tests/image/v2/test_image.py b/openstackclient/tests/image/v2/test_image.py
index 96e8734f..592def21 100644
--- a/openstackclient/tests/image/v2/test_image.py
+++ b/openstackclient/tests/image/v2/test_image.py
@@ -842,6 +842,19 @@ class TestImageSet(TestImage):
# Get the command object to test
self.cmd = image.SetImage(self.app, None)
+ def test_image_set_no_options(self):
+ arglist = [
+ image_fakes.image_id,
+ ]
+ verifylist = [
+ ('image', image_fakes.image_id)
+ ]
+ parsed_args = self.check_parser(self.cmd, arglist, verifylist)
+
+ result = self.cmd.take_action(parsed_args)
+
+ self.assertIsNone(result)
+
def test_image_set_options(self):
arglist = [
'--name', 'new-name',
@@ -1242,6 +1255,19 @@ class TestImageUnset(TestImage):
# Get the command object to test
self.cmd = image.UnsetImage(self.app, None)
+ def test_image_unset_no_options(self):
+ arglist = [
+ image_fakes.image_id,
+ ]
+ verifylist = [
+ ('image', image_fakes.image_id)
+ ]
+ parsed_args = self.check_parser(self.cmd, arglist, verifylist)
+
+ result = self.cmd.take_action(parsed_args)
+
+ self.assertIsNone(result)
+
def test_image_unset_tag_option(self):
arglist = [