Skip to content

Commit

Permalink
Add more assertion messages
Browse files Browse the repository at this point in the history
  • Loading branch information
sajith committed Nov 15, 2023
1 parent 4e9ab06 commit ad8364d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/integration/test_L2_with_mflib.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand All @@ -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()

Expand Down

0 comments on commit ad8364d

Please sign in to comment.