summaryrefslogtreecommitdiff
path: root/openstackclient/tests/unit
diff options
context:
space:
mode:
authorDean Troyer <dtroyer@gmail.com>2017-01-27 19:26:34 -0600
committerDean Troyer <dtroyer@gmail.com>2017-01-27 19:56:44 -0600
commit4a12280999eed4f35e9e2d61a475ffc7c2b001b2 (patch)
treea7997f8f4669f7c203ac460d4dffb3af0797db57 /openstackclient/tests/unit
parentca763793cc71d9e62cd526fe50d763000c549248 (diff)
downloadpython-openstackclient-4a12280999eed4f35e9e2d61a475ffc7c2b001b2.tar.gz
Fix address scope list --share
Remove the 'shared' key from the attrs passed in to the SDK with 0.9.13. Also convert the functional tests to the JSON-style (that's how I found this). Closes-bug: 1659993 Change-Id: I614fbce967cdd07fe7360242547dbf52e7677939
Diffstat (limited to 'openstackclient/tests/unit')
-rw-r--r--openstackclient/tests/unit/network/v2/test_address_scope.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/openstackclient/tests/unit/network/v2/test_address_scope.py b/openstackclient/tests/unit/network/v2/test_address_scope.py
index 516b8795..40067188 100644
--- a/openstackclient/tests/unit/network/v2/test_address_scope.py
+++ b/openstackclient/tests/unit/network/v2/test_address_scope.py
@@ -352,7 +352,7 @@ class TestListAddressScope(TestAddressScope):
columns, data = self.cmd.take_action(parsed_args)
self.network.address_scopes.assert_called_once_with(
- **{'shared': True, 'is_shared': True}
+ **{'is_shared': True}
)
self.assertEqual(self.columns, columns)
self.assertEqual(self.data, list(data))
@@ -368,7 +368,7 @@ class TestListAddressScope(TestAddressScope):
columns, data = self.cmd.take_action(parsed_args)
self.network.address_scopes.assert_called_once_with(
- **{'shared': False, 'is_shared': False}
+ **{'is_shared': False}
)
self.assertEqual(self.columns, columns)
self.assertEqual(self.data, list(data))