Rename networkcontainer to network

This commit is contained in:
Marek Wolan
2023-08-24 12:41:46 +01:00
parent a818de8f01
commit 7058c7e9a8
4 changed files with 13 additions and 13 deletions

View File

@@ -1,16 +1,16 @@
import json
from primaite.simulator.network.container import NetworkContainer
from primaite.simulator.network.container import Network
def test_creating_container():
"""Check that we can create a network container"""
net = NetworkContainer()
net = Network()
assert net.nodes and net.links
def test_describe_state():
"""Check that we can describe network state without raising errors, and that the result is JSON serialisable."""
net = NetworkContainer()
net = Network()
state = net.describe_state()
json.dumps(state) # if this function call raises an error, the test fails, state was not JSON-serialisable