From 2aa774b6f6801c7022b92890c457187dd3ea5ea1 Mon Sep 17 00:00:00 2001 From: stevenvanrossem Date: Fri, 5 May 2017 00:39:32 +0200 Subject: [PATCH] fix unittest --- src/emuvim/test/unittests/test_sonata_dummy_gatekeeper.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/emuvim/test/unittests/test_sonata_dummy_gatekeeper.py b/src/emuvim/test/unittests/test_sonata_dummy_gatekeeper.py index cc7eddd..110907c 100755 --- a/src/emuvim/test/unittests/test_sonata_dummy_gatekeeper.py +++ b/src/emuvim/test/unittests/test_sonata_dummy_gatekeeper.py @@ -138,7 +138,8 @@ class testSonataDummyGatekeeper(SimpleTestTopology): test_ip_list = list(ELAN_list) test_ip_list.remove(ip_address) for ip in test_ip_list: - p = self.net.ping([vnf],manualdestip=ip) + # only take ip address, without netmask + p = self.net.ping([vnf],manualdestip=ip.split('/')[0]) print p self.assertTrue(p <= 0.0) -- 2.25.1