1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-28 03:08:14 +00:00

Add a stupid is_interface_up test in order to see why it's crash on

travis

Related to #230
This commit is contained in:
Julien Duponchelle 2015-06-09 09:56:08 +02:00
parent 352fa3480b
commit 525940ee15

View File

@ -16,9 +16,15 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
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