From 525940ee1521ec3ff8f2179092fedcbf65eab5f6 Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Tue, 9 Jun 2015 09:56:08 +0200 Subject: [PATCH] Add a stupid is_interface_up test in order to see why it's crash on travis Related to #230 --- tests/utils/test_interfaces.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/utils/test_interfaces.py b/tests/utils/test_interfaces.py index 9e899872..e712e4a3 100644 --- a/tests/utils/test_interfaces.py +++ b/tests/utils/test_interfaces.py @@ -16,9 +16,15 @@ # along with this program. If not, see . -from gns3server.utils.interfaces import interfaces +from gns3server.utils.interfaces import interfaces, is_interface_up def test_interfaces(): # This test should pass on all platforms without crash assert isinstance(interfaces(), list) + + +def test_is_interface_up(): + assert is_interface_up("eth0") is True + +