capabilities flattened and tests fixed

This commit is contained in:
Sandy Walsh
2011-05-09 09:08:56 -07:00
parent b4a8e09764
commit cf65ae85a9
3 changed files with 27 additions and 27 deletions

View File

@@ -709,9 +709,9 @@ class HostStateTestCase(test.TestCase):
self.stubs.Set(vm_utils, 'safe_find_sr', self._fake_safe_find_sr)
host_state = xenapi_conn.HostState(FakeSession())
stats = host_state._stats
self.assertEquals('disk_total', 10000)
self.assertEquals('disk_used', 20000)
self.assertEquals('host_memory_total', 10)
self.assertEquals('host_memory_overhead', 20)
self.assertEquals('host_memory_free', 30)
self.assertEquals('host_memory_free-computed', 40)
self.assertEquals(stats['disk_total'], 10000)
self.assertEquals(stats['disk_used'], 20000)
self.assertEquals(stats['host_memory_total'], 10)
self.assertEquals(stats['host_memory_overhead'], 20)
self.assertEquals(stats['host_memory_free'], 30)
self.assertEquals(stats['host_memory_free-computed'], 40)