summaryrefslogtreecommitdiffstats
path: root/nova/tests
diff options
context:
space:
mode:
authorChris Behrens <cbehrens@codestud.com>2011-06-28 08:08:13 -0700
committerChris Behrens <cbehrens@codestud.com>2011-06-28 08:08:13 -0700
commit9653ee5cfae198355610ff40f0820eb9071a0deb (patch)
tree7da88d2704ccae55e9ddc39524b18dd5a4cb814b /nova/tests
parentc293506c435222d8154618ffda89108d3f1ef692 (diff)
log formatting typo
pep8 fixes
Diffstat (limited to 'nova/tests')
-rw-r--r--nova/tests/scheduler/test_zone_aware_scheduler.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/nova/tests/scheduler/test_zone_aware_scheduler.py b/nova/tests/scheduler/test_zone_aware_scheduler.py
index b2599f1b8..1e23e3ee6 100644
--- a/nova/tests/scheduler/test_zone_aware_scheduler.py
+++ b/nova/tests/scheduler/test_zone_aware_scheduler.py
@@ -63,13 +63,13 @@ class FakeZoneManager(zone_manager.ZoneManager):
def __init__(self):
self.service_states = {
'host1': {
- 'compute': {'host_memory_free': 1000*1024*1024},
+ 'compute': {'host_memory_free': 1073741824},
},
'host2': {
- 'compute': {'host_memory_free': 2000*1024*1024},
+ 'compute': {'host_memory_free': 2147483648},
},
'host3': {
- 'compute': {'host_memory_free': 3000*1024*1024},
+ 'compute': {'host_memory_free': 3221225472},
},
}
@@ -158,7 +158,7 @@ class ZoneAwareSchedulerTestCase(test.TestCase):
fake_context = {}
build_plan = sched.select(fake_context,
{'instance_type': {'memory_mb': 512},
- 'num_instances': 4 })
+ 'num_instances': 4})
# 4 from local zones, 12 from remotes
self.assertEqual(16, len(build_plan))