summaryrefslogtreecommitdiff
path: root/openstackclient/tests/identity/v3/test_project.py
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-02-13 06:11:22 +0000
committerGerrit Code Review <review@openstack.org>2016-02-13 06:11:22 +0000
commitf1b11e2cf06b26e516bf6aeee302790ef0cced3a (patch)
treeb0c3fbe56a166e130b8a48189fd33d4df095792a /openstackclient/tests/identity/v3/test_project.py
parent2dae6567c67baee7194c2b8851c00d00b0db0392 (diff)
parentd0c0cefb84b4d7abff23e7e313acd9725df1be9b (diff)
downloadpython-openstackclient-f1b11e2cf06b26e516bf6aeee302790ef0cced3a.tar.gz
Merge "Identity: Fix DisplayCommandBase comments for cliff Lister subclass tests"
Diffstat (limited to 'openstackclient/tests/identity/v3/test_project.py')
-rw-r--r--openstackclient/tests/identity/v3/test_project.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/openstackclient/tests/identity/v3/test_project.py b/openstackclient/tests/identity/v3/test_project.py
index 36540201..61b6d2c6 100644
--- a/openstackclient/tests/identity/v3/test_project.py
+++ b/openstackclient/tests/identity/v3/test_project.py
@@ -464,7 +464,9 @@ class TestProjectList(TestProject):
verifylist = []
parsed_args = self.check_parser(self.cmd, arglist, verifylist)
- # DisplayCommandBase.take_action() returns two tuples
+ # In base command class Lister in cliff, abstract method take_action()
+ # returns a tuple containing the column names and an iterable
+ # containing the data to be listed.
columns, data = self.cmd.take_action(parsed_args)
self.projects_mock.list.assert_called_with()
@@ -480,7 +482,9 @@ class TestProjectList(TestProject):
]
parsed_args = self.check_parser(self.cmd, arglist, verifylist)
- # DisplayCommandBase.take_action() returns two tuples
+ # In base command class Lister in cliff, abstract method take_action()
+ # returns a tuple containing the column names and an iterable
+ # containing the data to be listed.
columns, data = self.cmd.take_action(parsed_args)
self.projects_mock.list.assert_called_with()
@@ -511,7 +515,9 @@ class TestProjectList(TestProject):
parsed_args = self.check_parser(self.cmd, arglist, verifylist)
- # DisplayCommandBase.take_action() returns two tuples
+ # In base command class Lister in cliff, abstract method take_action()
+ # returns a tuple containing the column names and an iterable
+ # containing the data to be listed.
columns, data = self.cmd.take_action(parsed_args)
self.projects_mock.list.assert_called_with(
domain=identity_fakes.domain_id)