|
|
@ -177,12 +177,6 @@ def test_create_image_exist(loop, tmpdir, fake_qemu_img_binary):
|
|
|
|
assert not process.called
|
|
|
|
assert not process.called
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def test_get_kvm_archs_no_kvm(loop):
|
|
|
|
|
|
|
|
with asyncio_patch("asyncio.create_subprocess_exec", side_effect=FileNotFoundError('kvm-ok')):
|
|
|
|
|
|
|
|
archs = loop.run_until_complete(asyncio.async(Qemu.get_kvm_archs()))
|
|
|
|
|
|
|
|
assert archs == []
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def test_get_kvm_archs_kvm_ok(loop):
|
|
|
|
def test_get_kvm_archs_kvm_ok(loop):
|
|
|
|
|
|
|
|
|
|
|
|
with patch("os.path.exists", return_value=True):
|
|
|
|
with patch("os.path.exists", return_value=True):
|
|
|
|