From c7586cd59dc0c6d0b1bde06f9cc19725408b9d77 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Fri, 1 Jan 2016 14:09:54 +0100 Subject: [PATCH] test: fix option in port test This fixes a test that uses the option --no-security-group, which actually does not exist. `argparse` fuzzy-matching system makes the test work by guessing that it's an abbrev for --no-security-groups, but that's just luck at this point. Change-Id: I903ce9564a83d3ee69f4efeb726d3c2d3ff69bbb --- neutronclient/tests/unit/test_cli20_port.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neutronclient/tests/unit/test_cli20_port.py b/neutronclient/tests/unit/test_cli20_port.py index 0fe898532..de2197620 100644 --- a/neutronclient/tests/unit/test_cli20_port.py +++ b/neutronclient/tests/unit/test_cli20_port.py @@ -284,7 +284,7 @@ class CLITestV20PortJSON(test_cli20.CLITestV20Base): name = 'myname' myid = 'myid' netid = 'netid' - args = ['--no-security-group', netid] + args = ['--no-security-groups', netid] position_names = ['network_id', 'security_groups'] position_values = [netid, []] self._test_create_resource(resource, cmd, name, myid, args,