python-openstackclient/openstackclient/tests
Tang Chen eb1574281b Test take_action() instead of run() in unit tests
Some of the unit tests test run(), but not take_action().

For example, in openstackclient/tests/volume/v1/test_volume.py, there is:

    def test_volume_set_size_smaller(self):
        ......

        result = self.cmd.run(parsed_args)

        self.assertEqual(0, result)
        ......

run() is defined in class Command in cliff. We don't need to test it in OSC
unit tests. On the contrary, we should test take_action(), which is
overwritten in each command classes in OSC.

Change-Id: If07e89953d40ac530f08cbb1ec05f5805171364b
Closes-bug: #1553468
2016-03-05 17:12:42 +08:00
..
api when fetching object store properties use lower() 2015-12-14 12:23:44 -05:00
common Add MultiKeyValueAction to custom parser action 2016-02-27 03:53:32 +08:00
compute Merge "[compute] Support restore server" 2016-03-04 23:41:42 +00:00
identity Test take_action() instead of run() in unit tests 2016-03-05 17:12:42 +08:00
image [Image] Check return value is None in image unit tests. 2016-03-02 16:16:37 +08:00
network Merge "Add 'port create' command" 2016-03-04 23:39:22 +00:00
object Fixed a bunch of spacing 2016-02-23 10:38:58 -06:00
volume Test take_action() instead of run() in unit tests 2016-03-05 17:12:42 +08:00
__init__.py Remove copyright from empty files 2014-01-20 17:28:13 +04:00
fakes.py Fixed a bunch of spacing 2016-02-23 10:38:58 -06:00
test_shell.py Merge "Add shell --profile option to trigger osprofiler from CLI" 2016-02-26 19:49:21 +00:00
utils.py Fixed a bunch of spacing 2016-02-23 10:38:58 -06:00