openstack-python-openstackc.../openstackclient/tests
Tang Chen d0c0cefb84 Identity: Fix DisplayCommandBase comments for cliff Lister subclass tests
As bug #1477199 describes, the wrong comment below is all over the
unit test code of OSC.

    # DisplayCommandBase.take_action() returns two tuples

There is no such class named DisplayCommandBase in OSC. It is in cliff.

All OSC command classes inherit from the base classes in cliff,
class Command, class Lister and class ShowOne. It is like this:

Object
|--> Command
     |--> DisplayCommandBase
          |--> Lister
          |--> ShowOne

take_action() is an abstract method of class Command, and generally is
overwritten by subclasses.
* Command.take_action() returns nothing.
* Lister.take_action() returns a tuple which contains a tuple of columns
  and a generator used to generate the data.
* ShowOne.take_action() returns an iterator which contains a tuple of
  columns and a tuple of data.

So, this problem should be fixed in 3 steps:
1. Remove all DisplayCommandBase comments for tests of classes inheriting
   from class Command in cliff as it returns nothing.
2. Fix all DisplayCommandBase comments for tests of classes inheriting
   from class Lister in cliff. Lister.take_action() returns a tuple and
   a generator.
3. Fix all DisplayCommandBase comments for tests of classes inheriting
   from class ShowOne in cliff. ShowOne.take_action() returns two tuples.

This patch finishes step 2 in all identity tests.

Change-Id: I2929ee688b1d7afc52c6ab325982bdc24c60a995
Partial-bug: #1477199
2016-02-10 22:44:29 +08:00
..
api when fetching object store properties use lower() 2015-12-14 12:23:44 -05:00
common Fix DisplayCommandBase comments for cliff Lister subclass tests 2016-02-09 20:28:18 +08:00
compute Trivial: Fix "abstractmethod" to "abstract method" 2016-02-10 19:01:52 +08:00
identity Identity: Fix DisplayCommandBase comments for cliff Lister subclass tests 2016-02-10 22:44:29 +08:00
image Fix DisplayCommandBase comments for cliff ShowOne subclass tests 2016-02-10 13:31:38 +08:00
network Fix DisplayCommandBase comments for cliff Lister subclass tests 2016-02-09 20:28:18 +08:00
object Fix DisplayCommandBase comments for cliff ShowOne subclass tests 2016-02-10 13:31:38 +08:00
volume Fix DisplayCommandBase comments for cliff ShowOne subclass tests 2016-02-10 13:31:38 +08:00
__init__.py Remove copyright from empty files 2014-01-20 17:28:13 +04:00
fakes.py Refactor network endpoint enablement checking 2016-01-04 13:49:49 -06:00
test_shell.py Add all regions to cloud configuration 2015-12-23 12:48:45 -06:00
utils.py Check volume status before extending size 2015-02-06 09:05:41 -08:00