mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 14:01:15 +02: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:
1 parent
352fa3480b
commit
525940ee15
1 file changed
+7
-1
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user