Remove multiple white spaces
Change-Id: I3715160a18cc2facdb8978ec97bf0f7ece1c3f05
This commit is contained in:
@@ -33,12 +33,12 @@ class CLITestArgs(testtools.TestCase):
|
|||||||
self.assertTrue(_mydict['my_bool'])
|
self.assertTrue(_mydict['my_bool'])
|
||||||
|
|
||||||
def test_bool_true(self):
|
def test_bool_true(self):
|
||||||
_specs = ['--my-bool', 'type=bool', 'true', '--arg1', 'value1']
|
_specs = ['--my-bool', 'type=bool', 'true', '--arg1', 'value1']
|
||||||
_mydict = quantumV20.parse_args_to_dict(_specs)
|
_mydict = quantumV20.parse_args_to_dict(_specs)
|
||||||
self.assertTrue(_mydict['my_bool'])
|
self.assertTrue(_mydict['my_bool'])
|
||||||
|
|
||||||
def test_bool_false(self):
|
def test_bool_false(self):
|
||||||
_specs = ['--my_bool', 'type=bool', 'false', '--arg1', 'value1']
|
_specs = ['--my_bool', 'type=bool', 'false', '--arg1', 'value1']
|
||||||
_mydict = quantumV20.parse_args_to_dict(_specs)
|
_mydict = quantumV20.parse_args_to_dict(_specs)
|
||||||
self.assertFalse(_mydict['my_bool'])
|
self.assertFalse(_mydict['my_bool'])
|
||||||
|
|
||||||
|
|||||||
@@ -108,7 +108,7 @@ class CLITestV20FloatingIps(CLITestV20Base):
|
|||||||
cmd = DisassociateFloatingIP(MyApp(sys.stdout), None)
|
cmd = DisassociateFloatingIP(MyApp(sys.stdout), None)
|
||||||
args = ['myid']
|
args = ['myid']
|
||||||
self._test_update_resource(resource, cmd, 'myid',
|
self._test_update_resource(resource, cmd, 'myid',
|
||||||
args, {"port_id": None}
|
args, {"port_id": None}
|
||||||
)
|
)
|
||||||
|
|
||||||
def test_associate_ip(self):
|
def test_associate_ip(self):
|
||||||
@@ -117,5 +117,5 @@ class CLITestV20FloatingIps(CLITestV20Base):
|
|||||||
cmd = AssociateFloatingIP(MyApp(sys.stdout), None)
|
cmd = AssociateFloatingIP(MyApp(sys.stdout), None)
|
||||||
args = ['myid', 'portid']
|
args = ['myid', 'portid']
|
||||||
self._test_update_resource(resource, cmd, 'myid',
|
self._test_update_resource(resource, cmd, 'myid',
|
||||||
args, {"port_id": "portid"}
|
args, {"port_id": "portid"}
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ class CLITestV20SecurityGroups(test_cli20.CLITestV20Base):
|
|||||||
name = 'webservers'
|
name = 'webservers'
|
||||||
description = 'my webservers'
|
description = 'my webservers'
|
||||||
myid = 'myid'
|
myid = 'myid'
|
||||||
args = [name, '--description', description]
|
args = [name, '--description', description]
|
||||||
position_names = ['name', 'description']
|
position_names = ['name', 'description']
|
||||||
position_values = [name, description]
|
position_values = [name, description]
|
||||||
self._test_create_resource(resource, cmd, name, myid, args,
|
self._test_create_resource(resource, cmd, name, myid, args,
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ class CLITestV20Subnet(CLITestV20Base):
|
|||||||
myid = 'myid'
|
myid = 'myid'
|
||||||
netid = 'netid'
|
netid = 'netid'
|
||||||
cidr = 'cidrvalue'
|
cidr = 'cidrvalue'
|
||||||
args = ['--no-gateway', netid, cidr]
|
args = ['--no-gateway', netid, cidr]
|
||||||
position_names = ['ip_version', 'network_id', 'cidr', 'gateway_ip']
|
position_names = ['ip_version', 'network_id', 'cidr', 'gateway_ip']
|
||||||
position_values = [4, netid, cidr, None]
|
position_values = [4, netid, cidr, None]
|
||||||
_str = self._test_create_resource(resource, cmd, name, myid, args,
|
_str = self._test_create_resource(resource, cmd, name, myid, args,
|
||||||
@@ -66,7 +66,7 @@ class CLITestV20Subnet(CLITestV20Base):
|
|||||||
netid = 'netid'
|
netid = 'netid'
|
||||||
cidr = 'cidrvalue'
|
cidr = 'cidrvalue'
|
||||||
gateway = 'gatewayvalue'
|
gateway = 'gatewayvalue'
|
||||||
args = ['--gateway', gateway, '--no-gateway', netid, cidr]
|
args = ['--gateway', gateway, '--no-gateway', netid, cidr]
|
||||||
position_names = ['ip_version', 'network_id', 'cidr', 'gateway_ip']
|
position_names = ['ip_version', 'network_id', 'cidr', 'gateway_ip']
|
||||||
position_values = [4, netid, cidr, None]
|
position_values = [4, netid, cidr, None]
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user