From c3eb6a440f6ca4e46e971aca8ff7295f3fc59f87 Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Thu, 9 Jul 2015 16:12:33 +0200 Subject: [PATCH] Fix vmware and interfaces tests --- tests/modules/vmware/test_vmware_vm.py | 2 +- tests/utils/test_interfaces.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/modules/vmware/test_vmware_vm.py b/tests/modules/vmware/test_vmware_vm.py index ef0cb893..0e3b1651 100644 --- a/tests/modules/vmware/test_vmware_vm.py +++ b/tests/modules/vmware/test_vmware_vm.py @@ -45,7 +45,7 @@ def test_vm(project, manager, vm): def test_json(vm, tmpdir, project): - assert vm.__json__()["vm_directory"] is None + assert vm.__json__()["vm_directory"] is not None project._path = str(tmpdir) vm._linked_clone = True assert vm.__json__()["vm_directory"] is not None diff --git a/tests/utils/test_interfaces.py b/tests/utils/test_interfaces.py index 401b0de1..2380ae3c 100644 --- a/tests/utils/test_interfaces.py +++ b/tests/utils/test_interfaces.py @@ -33,4 +33,4 @@ def test_is_interface_up(): assert is_interface_up("lo0") is True else: assert is_interface_up("lo") is True - assert is_interface_up("fake0") is False + assert is_interface_up("fake0") is False