[Kimchi-devel] [PATCH v2 3/3] Add unit tests for new vm 'persistent' property.
Christy Perez
christy at linux.vnet.ibm.com
Thu Aug 21 20:18:36 UTC 2014
Also fix tests that were failing as a result of the addition.
Signed-off-by: Christy Perez <christy at linux.vnet.ibm.com>
---
tests/test_model.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tests/test_model.py b/tests/test_model.py
index f5b13d0..59f416c 100644
--- a/tests/test_model.py
+++ b/tests/test_model.py
@@ -65,7 +65,7 @@ def test_vm_info(self):
keys = set(('name', 'state', 'stats', 'uuid', 'memory', 'cpus',
'screenshot', 'icon', 'graphics', 'users', 'groups',
- 'access', 'ticket'))
+ 'access', 'ticket', 'persistent'))
stats_keys = set(('cpu_utilization',
'net_throughput', 'net_throughput_peak',
@@ -81,6 +81,7 @@ def test_vm_info(self):
self.assertRaises(NotFoundError, inst.vm_lookup, 'nosuchvm')
self.assertEquals([], info['users'])
self.assertEquals([], info['groups'])
+ self.assertTrue(info['persistent'])
@unittest.skipUnless(utils.running_as_root(), 'Must be run as root')
def test_vm_lifecycle(self):
--
1.9.3
More information about the Kimchi-devel
mailing list