summaryrefslogtreecommitdiff
path: root/openstackclient/tests
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2014-07-07 23:53:24 +0000
committerGerrit Code Review <review@openstack.org>2014-07-07 23:53:24 +0000
commit25cd4dbb546a962ac00897e34c3f8dad4cc45d08 (patch)
tree79e294a9fd749d7ef2cb520f8aaa8465bea8d314 /openstackclient/tests
parentea938e8ddfa0f5f8832e09d61537f1e81e3121e9 (diff)
parentfba951568c5fcf765075134d8548a21de4f93a59 (diff)
downloadpython-openstackclient-25cd4dbb546a962ac00897e34c3f8dad4cc45d08.tar.gz
Merge "Python 3: do not compare a list to a zip object"
Diffstat (limited to 'openstackclient/tests')
-rw-r--r--openstackclient/tests/network/v2/test_network.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/openstackclient/tests/network/v2/test_network.py b/openstackclient/tests/network/v2/test_network.py
index b0c6af70..08b61a0a 100644
--- a/openstackclient/tests/network/v2/test_network.py
+++ b/openstackclient/tests/network/v2/test_network.py
@@ -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)