From 791525c7ae32ccf243f07680fb5db6ba9a194785 Mon Sep 17 00:00:00 2001 From: stevenvanrossem Date: Fri, 5 May 2017 00:01:19 +0200 Subject: [PATCH] fix unittest --- src/emuvim/test/unittests/test_emulator.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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) -- 2.25.1