#2358 - the node-specific properties in Network class now simply use node.__class__.__name__ to check their type for filtering by type. Tests updated to use the new property function names

This commit is contained in:
Chris McCarthy
2024-03-01 22:51:01 +00:00
parent ac304c85a3
commit 81fd43035d
5 changed files with 37 additions and 31 deletions

View File

@@ -26,10 +26,10 @@ def filter_keys_nested_item(data, keys):
@pytest.fixture(scope="function")
def network(example_network) -> Network:
assert len(example_network.routers) is 1
assert len(example_network.switches) is 2
assert len(example_network.computers) is 2
assert len(example_network.servers) is 2
assert len(example_network.router_nodes) is 1
assert len(example_network.switch_nodes) is 2
assert len(example_network.computer_nodes) is 2
assert len(example_network.server_nodes) is 2
example_network.show()