Esempio n. 1
0
 def setUp(self):
     self.file = tempfile.mkstemp()[1]
     self.m = abstracts.MachineManager()
     self._load_conf(self.CONF_EXAMPLE)
     self.m._initialize("kvm")
Esempio n. 2
0
 def test_initialize_missing_machine(self):
     self.m = abstracts.MachineManager()
     self._load_conf(self.CONF_EXAMPLE_MISSING_VM)
     self.m._initialize("kvm")
     assert_equals(1, len(self.m.machines))