Remove multiple white spaces

Change-Id: I3715160a18cc2facdb8978ec97bf0f7ece1c3f05
This commit is contained in:
gongysh
2013-01-26 09:00:52 +08:00
parent c22410fd7d
commit 0e103024f2
4 changed files with 7 additions and 7 deletions

View File

@@ -33,12 +33,12 @@ class CLITestArgs(testtools.TestCase):
self.assertTrue(_mydict['my_bool'])
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)
self.assertTrue(_mydict['my_bool'])
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)
self.assertFalse(_mydict['my_bool'])

View File

@@ -108,7 +108,7 @@ class CLITestV20FloatingIps(CLITestV20Base):
cmd = DisassociateFloatingIP(MyApp(sys.stdout), None)
args = ['myid']
self._test_update_resource(resource, cmd, 'myid',
args, {"port_id": None}
args, {"port_id": None}
)
def test_associate_ip(self):
@@ -117,5 +117,5 @@ class CLITestV20FloatingIps(CLITestV20Base):
cmd = AssociateFloatingIP(MyApp(sys.stdout), None)
args = ['myid', 'portid']
self._test_update_resource(resource, cmd, 'myid',
args, {"port_id": "portid"}
args, {"port_id": "portid"}
)

View File

@@ -61,7 +61,7 @@ class CLITestV20SecurityGroups(test_cli20.CLITestV20Base):
name = 'webservers'
description = 'my webservers'
myid = 'myid'
args = [name, '--description', description]
args = [name, '--description', description]
position_names = ['name', 'description']
position_values = [name, description]
self._test_create_resource(resource, cmd, name, myid, args,

View File

@@ -51,7 +51,7 @@ class CLITestV20Subnet(CLITestV20Base):
myid = 'myid'
netid = 'netid'
cidr = 'cidrvalue'
args = ['--no-gateway', netid, cidr]
args = ['--no-gateway', netid, cidr]
position_names = ['ip_version', 'network_id', 'cidr', 'gateway_ip']
position_values = [4, netid, cidr, None]
_str = self._test_create_resource(resource, cmd, name, myid, args,
@@ -66,7 +66,7 @@ class CLITestV20Subnet(CLITestV20Base):
netid = 'netid'
cidr = 'cidrvalue'
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_values = [4, netid, cidr, None]
try: