mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-24 17:28:08 +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:
parent
352fa3480b
commit
525940ee15
@ -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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user