openstack-python-openstackc.../openstackclient
Tang Chen c4b590748a 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 c7e6973ff5 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
2016-06-14 15:32:33 +08:00
..
api osc-lib: utils 2016-06-13 10:50:44 -05:00
common osc-lib: command 2016-06-13 11:00:22 -05:00
compute osc-lib: command 2016-06-13 11:00:22 -05:00
identity Merge "osc-lib: command" 2016-06-14 06:45:17 +00:00
image osc-lib: command 2016-06-13 11:00:22 -05:00
locale Imported Translations from Zanata 2016-06-04 06:18:46 +00:00
network osc-lib: command 2016-06-13 11:00:22 -05:00
object osc-lib: command 2016-06-13 11:00:22 -05:00
releasenotes/notes Do not require an scope when setting a password 2016-05-27 09:12:24 +02:00
tests Fix errors in `set/unset flavor` unit tests 2016-06-14 15:32:33 +08:00
volume osc-lib: command 2016-06-13 11:00:22 -05: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 osc-lib: logs 2016-06-13 10:55:44 -05:00