summaryrefslogtreecommitdiff
path: root/openstackclient/network/v2/network.py
diff options
context:
space:
mode:
authorTang Chen <chen.tang@easystack.cn>2016-03-05 17:12:42 +0800
committerTang Chen <chen.tang@easystack.cn>2016-03-05 17:12:42 +0800
commiteb1574281b84e86ee4c4b65d900e1de82c24471e (patch)
tree7a63847be854e6c89a078fae51eefe52accf5e23 /openstackclient/network/v2/network.py
parentfa3a34322c532c6ae09b7b21c305b6a92d99300a (diff)
downloadpython-openstackclient-eb1574281b84e86ee4c4b65d900e1de82c24471e.tar.gz
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
Diffstat (limited to 'openstackclient/network/v2/network.py')
0 files changed, 0 insertions, 0 deletions