openstack-python-openstackc.../openstackclient
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 Merge "Clean up unnecessary import of urlparse module" 2016-03-01 23:51:00 +00:00
common fix: Exception message includes unnecessary class args 2016-02-29 16:06:05 -06:00
compute Merge "[compute] Support restore server" 2016-03-04 23:41:42 +00:00
identity take_action() method from command.Command shouldn't return 2016-02-29 17:23:29 +00:00
image Fix return value of "image set" command 2016-02-29 16:18:55 +08:00
locale Update translation setup 2016-01-29 08:18:50 +09:00
network Merge "Add 'port create' command" 2016-03-04 23:39:22 +00:00
object Add recursive object delete for containers 2016-02-05 11:18:46 -07:00
tests Test take_action() instead of run() in unit tests 2016-03-05 17:12:42 +08:00
volume Fixed a bunch of spacing 2016-02-23 10:38:58 -06:00
__init__.py Change version reporting to use pbr 2013-08-02 12:11:49 -05:00
i18n.py Update translation setup 2016-01-29 08:18:50 +09:00
shell.py Fix regression in interactive client mode 2016-03-01 13:45:19 +03:00