summaryrefslogtreecommitdiff
path: root/openstackclient
diff options
context:
space:
mode:
authorTang Chen <tangchen@cn.fujitsu.com>2015-12-16 14:32:20 +0800
committerTang Chen <tangchen@cn.fujitsu.com>2015-12-15 13:22:00 +0000
commitbd0bed746707c1b59eb659767d44d94666b15433 (patch)
treea67310b840568a4b649dbae667039fff2a7183af /openstackclient
parentc47aa52c431e33f876617e648295022b95b64676 (diff)
downloadpython-openstackclient-bd0bed746707c1b59eb659767d44d94666b15433.tar.gz
Network: Improve no option test for "network create".
Currently, test_create_no_options() case actually takes a 'name' arg. Rename it to test_create_default_options, and add a test_create_no_options case taking nothing. Change-Id: I4f9d2e8cbfa843faea641d3cc959f96894c9cd5d
Diffstat (limited to 'openstackclient')
-rw-r--r--openstackclient/tests/network/v2/test_network.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/openstackclient/tests/network/v2/test_network.py b/openstackclient/tests/network/v2/test_network.py
index e8651492..5a718686 100644
--- a/openstackclient/tests/network/v2/test_network.py
+++ b/openstackclient/tests/network/v2/test_network.py
@@ -93,6 +93,16 @@ class TestCreateNetworkIdentityV3(TestNetwork):
)
def test_create_no_options(self):
+ arglist = []
+ verifylist = []
+
+ try:
+ # Missing required args should bail here
+ self.check_parser(self.cmd, arglist, verifylist)
+ except tests_utils.ParserException:
+ pass
+
+ def test_create_default_options(self):
arglist = [
self._network.name,
]