From: stevenvanrossem Date: Thu, 4 May 2017 22:39:32 +0000 (+0200) Subject: fix unittest X-Git-Tag: v3.1~30^2 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=2aa774b6f6801c7022b92890c457187dd3ea5ea1;p=osm%2Fvim-emu.git fix unittest --- 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)