summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Behrens <cbehrens@codestud.com>2011-08-03 14:13:37 -0700
committerChris Behrens <cbehrens@codestud.com>2011-08-03 14:13:37 -0700
commit544eecd0adc2c774e512f5c364f6952fb3fd1155 (patch)
treedc4bddfafff129caa02e5faa927e5713b84f0dba
parent3765fca2cfd323c047141a27df248d9617d71ad0 (diff)
fix test_cloud FLAGS setting
-rw-r--r--nova/tests/test_cloud.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/nova/tests/test_cloud.py b/nova/tests/test_cloud.py
index 8c1a74c70..e891fa197 100644
--- a/nova/tests/test_cloud.py
+++ b/nova/tests/test_cloud.py
@@ -99,11 +99,9 @@ class CloudTestCase(test.TestCase):
"""Makes sure describe regions runs without raising an exception"""
result = self.cloud.describe_regions(self.context)
self.assertEqual(len(result['regionInfo']), 1)
- regions = FLAGS.region_list
- FLAGS.region_list = ["one=test_host1", "two=test_host2"]
+ self.flags(region_list=["one=test_host1", "two=test_host2"])
result = self.cloud.describe_regions(self.context)
self.assertEqual(len(result['regionInfo']), 2)
- FLAGS.region_list = regions
def test_describe_addresses(self):
"""Makes sure describe addresses runs without raising an exception"""