summaryrefslogtreecommitdiff
path: root/openstackclient/common
diff options
context:
space:
mode:
authorTang Chen <chen.tang@easystack.cn>2016-06-14 14:51:37 +0800
committerTang Chen <chen.tang@easystack.cn>2016-06-14 15:32:33 +0800
commitc4b590748a059f760beb74509efbf5a825e24d0f (patch)
treea13e21a2b5a4c6b07ff45a627122d912ca9e0d64 /openstackclient/common
parent2c92b60f457a16c315b6286592e9fee534bd4b3d (diff)
downloadpython-openstackclient-c4b590748a059f760beb74509efbf5a825e24d0f.tar.gz
Fix errors in ``set/unset flavor`` unit tests
1. We should assert flavor.set_keys() is called correctly or not called in ``set flavor`` unit tests. 2. Commit c7e6973ff50ff84af9ad55f7bdaeeea83ae40f0b from me removed test_flavor_unset_no_project which used to test if --project was specified as '', and assert CommandError was raised, which is incorrect. So I removed it. But after looking into the code, I think we should not remove it, but specify nothing after --project, and assert ParserException was raised. So in this patch, we fix it as so. ('--project', '') --> ('--project') assert CommandError --> assert ParserException Change-Id: Ifd33c72d5b7581aaabffb09e9b5e38ecc67e18c0
Diffstat (limited to 'openstackclient/common')
0 files changed, 0 insertions, 0 deletions