Small cleanups

This commit is contained in:
Rick Harris
2011-05-17 18:53:00 -05:00
parent ccaef1a0c5
commit 53be0b03d0
2 changed files with 7 additions and 10 deletions

View File

@@ -27,10 +27,6 @@ from nova.tests.scheduler import test_zone_aware_scheduler
FLAGS = flags.FLAGS
class FakeZoneManager:
pass
class HostFilterTestCase(test.TestCase):
"""Test case for host filter drivers."""
@@ -48,6 +44,9 @@ class HostFilterTestCase(test.TestCase):
rxtx_quota=30000,
rxtx_cap=200)
class FakeZoneManager:
pass
self.zone_manager = FakeZoneManager()
states = test_zone_aware_scheduler.fake_zone_manager_service_states(

View File

@@ -63,15 +63,13 @@ class WeightedSumTestCase(test.TestCase):
self.assertEqual(expected, costs)
# TODO(sirp): unify this with test_host_filter tests? possibility of sharing
# test setup code
class FakeZoneManager:
pass
class LeastCostSchedulerTestCase(test.TestCase):
def setUp(self):
super(LeastCostSchedulerTestCase, self).setUp()
class FakeZoneManager:
pass
zone_manager = FakeZoneManager()
states = test_zone_aware_scheduler.fake_zone_manager_service_states(