Remove the last of the gflags shim layer

Make FLAGS a ConfigOpts instance and fix up all the places where we
expected FlagValues behaviour.

Change-Id: I8f96f42e0d8d30ba6b362d29861e717cf0fa9e89
This commit is contained in:
Mark McLoughlin
2012-02-03 00:50:58 +00:00
parent 0ca8e54e5a
commit f3816e4951
33 changed files with 102 additions and 253 deletions

View File

@@ -173,7 +173,7 @@ class InstanceTypeTestCase(test.TestCase):
def test_will_not_get_bad_default_instance_type(self):
"""ensures error raised on bad default instance type"""
FLAGS.default_instance_type = 'unknown_flavor'
self.flags(default_instance_type='unknown_flavor')
self.assertRaises(exception.ApiError,
instance_types.get_default_instance_type)