fix unittest
authorstevenvanrossem <steven.vanrossem@intec.ugent.be>
Thu, 4 May 2017 22:39:32 +0000 (00:39 +0200)
committerstevenvanrossem <steven.vanrossem@intec.ugent.be>
Thu, 4 May 2017 22:39:32 +0000 (00:39 +0200)
src/emuvim/test/unittests/test_sonata_dummy_gatekeeper.py

index cc7eddd..110907c 100755 (executable)
@@ -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)