From ad8364d5a5b4c4a3c9c87ce4142862b287fd545f Mon Sep 17 00:00:00 2001 From: Sajith Sasidharan Date: Wed, 15 Nov 2023 11:15:58 -0600 Subject: [PATCH] Add more assertion messages --- tests/integration/test_L2_with_mflib.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/integration/test_L2_with_mflib.py b/tests/integration/test_L2_with_mflib.py index 754a0851..5b2f4d56 100644 --- a/tests/integration/test_L2_with_mflib.py +++ b/tests/integration/test_L2_with_mflib.py @@ -63,7 +63,8 @@ def test_add_l2_measurement_nodes_modify(self): nodes = slice.get_nodes() for node in nodes: - self.assertIsNotNone(node.get_management_ip()) + self.assertIsNotNone(node.get_management_ip(), + f"node {node.get_name()} has no management IP address") ifaces = slice.get_interfaces() @@ -86,7 +87,8 @@ def test_add_l2_measurement_nodes_no_modify(self): nodes = slice.get_nodes() for node in nodes: - self.assertIsNotNone(node.get_management_ip()) + self.assertIsNotNone(node.get_management_ip(), + f"node {node.get_name()} has no management IP address") ifaces = slice.get_interfaces()