summaryrefslogtreecommitdiff
path: root/openstackclient/tests/unit
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2017-01-24 01:24:26 +0000
committerGerrit Code Review <review@openstack.org>2017-01-24 01:24:26 +0000
commit30ddab2341c109af2f2ee977eab2ead3191d2b2c (patch)
tree382b45a18aa329ea6e5706b9e128fe11cb657a62 /openstackclient/tests/unit
parent0d7f27bc0094e6394ec8df820ae98d02e87fc9af (diff)
parentab88573ebbbdfdb8b351a9aee4670a9a31b478b2 (diff)
downloadpython-openstackclient-30ddab2341c109af2f2ee977eab2ead3191d2b2c.tar.gz
Merge "SDK refactor: Prepare security group commands"
Diffstat (limited to 'openstackclient/tests/unit')
-rw-r--r--openstackclient/tests/unit/network/v2/test_security_group.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/openstackclient/tests/unit/network/v2/test_security_group.py b/openstackclient/tests/unit/network/v2/test_security_group.py
index 43aa07cc..9a30267e 100644
--- a/openstackclient/tests/unit/network/v2/test_security_group.py
+++ b/openstackclient/tests/unit/network/v2/test_security_group.py
@@ -456,7 +456,7 @@ class TestListSecurityGroupNetwork(TestSecurityGroupNetwork):
parsed_args = self.check_parser(self.cmd, arglist, verifylist)
columns, data = self.cmd.take_action(parsed_args)
- filters = {'tenant_id': project.id}
+ filters = {'tenant_id': project.id, 'project_id': project.id}
self.network.security_groups.assert_called_once_with(**filters)
self.assertEqual(self.columns, columns)
@@ -476,7 +476,7 @@ class TestListSecurityGroupNetwork(TestSecurityGroupNetwork):
parsed_args = self.check_parser(self.cmd, arglist, verifylist)
columns, data = self.cmd.take_action(parsed_args)
- filters = {'tenant_id': project.id}
+ filters = {'tenant_id': project.id, 'project_id': project.id}
self.network.security_groups.assert_called_once_with(**filters)
self.assertEqual(self.columns, columns)