Beispiel #1
0
 def test_base_hash_state_method(self):
     Q = ciw.Simulation(
         ciw.load_parameters(
             'ciw/tests/datafortesting/logs_test_for_simulation/parameters.yml'
         ))
     B = ciw.StateTracker(Q)
     self.assertEqual(B.hash_state(), None)
Beispiel #2
0
 def test_base_change_state_release_method(self):
     Q = ciw.Simulation(ciw.create_network_from_yml(
       'ciw/tests/testing_parameters/params.yml'))
     B = ciw.StateTracker(Q)
     self.assertEqual(B.state, None)
     B.change_state_release(1, 1, 1, True)
     self.assertEqual(B.state, None)
Beispiel #3
0
 def test_base_change_state_release_method(self):
     Q = ciw.Simulation(
         ciw.load_parameters(
             'ciw/tests/datafortesting/logs_test_for_simulation/parameters.yml'
         ))
     B = ciw.StateTracker(Q)
     self.assertEqual(B.state, None)
     B.change_state_release(1, 1, 1, True)
     self.assertEqual(B.state, None)
Beispiel #4
0
 def test_base_init_method(self):
     Q = ciw.Simulation(ciw.create_network_from_yml(
       'ciw/tests/testing_parameters/params.yml'))
     B = ciw.StateTracker(Q)
     self.assertEqual(B.simulation, Q)
     self.assertEqual(B.state, None)