def test_wait_for_qmp_fails(self): qemuwindriver = QemuWinDriver() instance = {'name' : 'fakename'} qemuwindriver.QEMU_SPAWN_MAX_RETRIES = 1 self.assertRaises(Exception, qemuwindriver._wait_for_qmp, instance)
def test_wait_for_qmp_running_on_first_try(self): qemuwindriver = QemuWinDriver() instance = {'name' : 'fakename'} qemuwindriver.QEMU_SPAWN_MAX_RETRIES = 1 qemuwindriver._wait_for_qmp(instance)