- self.assertTrue(self.dc[0].listCompute()[1].name == "vnf1")
- self.assertTrue(self.dc[0].listCompute()[0].name == "vnf2")
- self.assertTrue(self.dc[1].listCompute()[0].name == "vnf3")
+ print("dc1: ", self.dc[0].listCompute())
+ print("dc2: ", self.dc[1].listCompute())
+ self.assertIn("vnf1", list(map(lambda x: x.name, self.dc[0].listCompute())))
+ self.assertIn("vnf2", list(map(lambda x: x.name, self.dc[0].listCompute())))
+ self.assertIn("vnf3", list(map(lambda x: x.name, self.dc[1].listCompute())))