Describe state
This commit is contained in:
16
tests/unit_tests/_primaite/_simulator/test_sim_conatiner.py
Normal file
16
tests/unit_tests/_primaite/_simulator/test_sim_conatiner.py
Normal file
@@ -0,0 +1,16 @@
|
||||
from primaite.simulator.sim_container import Simulation
|
||||
|
||||
|
||||
def test_creating_empty_simulation():
|
||||
"""Check that no errors occur when trying to setup a simulation without providing parameters"""
|
||||
empty_sim = Simulation()
|
||||
|
||||
|
||||
def test_empty_sim_state():
|
||||
"""Check that describe_state has the right subcomponents."""
|
||||
empty_sim = Simulation()
|
||||
sim_state = empty_sim.describe_state()
|
||||
network_state = empty_sim.network.describe_state()
|
||||
domain_state = empty_sim.domain.describe_state()
|
||||
assert sim_state["network"] == network_state
|
||||
assert sim_state["domain"] == domain_state
|
||||
Reference in New Issue
Block a user