def setUp(self): self.file = tempfile.mkstemp()[1] self.m = abstracts.MachineManager() self._load_conf(self.CONF_EXAMPLE) self.m._initialize("kvm")
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))