From: stevenvanrossem Date: Thu, 4 May 2017 22:01:19 +0000 (+0200) Subject: fix unittest X-Git-Tag: v3.1~30^2~2 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=791525c7ae32ccf243f07680fb5db6ba9a194785;p=osm%2Fvim-emu.git fix unittest --- diff --git a/src/emuvim/test/unittests/test_emulator.py b/src/emuvim/test/unittests/test_emulator.py index ae18609..b5612a1 100755 --- a/src/emuvim/test/unittests/test_emulator.py +++ b/src/emuvim/test/unittests/test_emulator.py @@ -146,16 +146,18 @@ class testEmulatorNetworking( SimpleTestTopology ): # check status # check get status s1 = self.dc[0].containers.get("vnf1").getStatus() + print s1 self.assertTrue(s1["name"] == "vnf1") self.assertTrue(s1["state"]["Running"]) self.assertTrue(s1["network"][0]['intf_name'] == 'intf1') - self.assertTrue(s1["network"][0]['ip'] == '10.0.10.1') + self.assertTrue(s1["network"][0]['ip'] == '10.0.10.1/24') s2 = self.dc[1].containers.get("vnf2").getStatus() + print s2 self.assertTrue(s2["name"] == "vnf2") self.assertTrue(s2["state"]["Running"]) self.assertTrue(s2["network"][0]['intf_name'] == 'intf2') - self.assertTrue(s2["network"][0]['ip'] == '10.0.10.2') + self.assertTrue(s2["network"][0]['ip'] == '10.0.10.2/24') # should be not not yet connected self.assertTrue(self.net.ping([vnf1, vnf2]) > 0.0)