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 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
2016-06-14 15:32:33 +08:00
..
2016-06-13 10:50:44 -05:00
2016-06-13 11:00:22 -05:00
2016-06-13 11:00:22 -05:00
2016-06-14 06:45:17 +00:00
2016-06-13 11:00:22 -05:00
2016-06-04 06:18:46 +00:00
2016-06-13 11:00:22 -05:00
2016-06-13 11:00:22 -05:00
2016-06-13 11:00:22 -05:00
2016-01-29 08:18:50 +09:00
2016-06-13 10:55:44 -05:00