Python 3: do not compare a list to a zip object
In Python 3, zip() returns a zip object, not a list. Change-Id: I1a472bec3e12b5ae3c3555cf690b99a57579ce83
This commit is contained in:
parent
b157dc937e
commit
fba951568c
@ -49,7 +49,7 @@ class TestCreateNetwork(common.TestNetworkBase):
|
||||
cmd = network.CreateNetwork(self.app, self.namespace)
|
||||
|
||||
parsed_args = self.check_parser(cmd, arglist, verifylist)
|
||||
result = cmd.take_action(parsed_args)
|
||||
result = list(cmd.take_action(parsed_args))
|
||||
|
||||
mocker.assert_called_with({
|
||||
RESOURCE: {
|
||||
@ -75,7 +75,7 @@ class TestCreateNetwork(common.TestNetworkBase):
|
||||
cmd = network.CreateNetwork(self.app, self.namespace)
|
||||
|
||||
parsed_args = self.check_parser(cmd, arglist, verifylist)
|
||||
result = cmd.take_action(parsed_args)
|
||||
result = list(cmd.take_action(parsed_args))
|
||||
|
||||
mocker.assert_called_with({
|
||||
RESOURCE: {
|
||||
@ -102,7 +102,7 @@ class TestCreateNetwork(common.TestNetworkBase):
|
||||
cmd = network.CreateNetwork(self.app, self.namespace)
|
||||
|
||||
parsed_args = self.check_parser(cmd, arglist, verifylist)
|
||||
result = cmd.take_action(parsed_args)
|
||||
result = list(cmd.take_action(parsed_args))
|
||||
|
||||
mocker.assert_called_with({
|
||||
RESOURCE: {
|
||||
@ -298,7 +298,7 @@ class TestShowNetwork(common.TestNetworkBase):
|
||||
cmd = network.ShowNetwork(self.app, self.namespace)
|
||||
|
||||
parsed_args = self.check_parser(cmd, arglist, verifylist)
|
||||
result = cmd.take_action(parsed_args)
|
||||
result = list(cmd.take_action(parsed_args))
|
||||
|
||||
mocker.assert_called_with(FAKE_ID)
|
||||
self.assertEqual(FILTERED, result)
|
||||
@ -313,7 +313,7 @@ class TestShowNetwork(common.TestNetworkBase):
|
||||
cmd = network.ShowNetwork(self.app, self.namespace)
|
||||
|
||||
parsed_args = self.check_parser(cmd, arglist, verifylist)
|
||||
result = cmd.take_action(parsed_args)
|
||||
result = list(cmd.take_action(parsed_args))
|
||||
|
||||
mocker.assert_called_with(FAKE_ID)
|
||||
self.assertEqual(FILTERED, result)
|
||||
|
Loading…
x
Reference in New Issue
Block a user