Beispiel #1
0
def get_simulation_data_bottleneck_001(bottleneck_001):
    scenario = Simulation(bottleneck_001)
    sim_param = scenario.get_simulation_parameters()
    PAR = (
        {
            "id": "simID",
            "pasdetemps": "1",
            "debut": "00:00:00",
            "fin": "00:00:30",
            "loipoursuite": "exacte",
            "comportementflux": "iti",
            "date": "1985-01-17",
            "titre": "",
            "proc_deceleration": "false",
            "seed": "1",
        },
        {
            "id": "simID2",
            "pasdetemps": "1",
            "debut": "00:00:00",
            "fin": "00:00:30",
            "loipoursuite": "exacte",
            "comportementflux": "iti",
            "date": "1985-01-17",
            "titre": "",
            "proc_deceleration": "false",
            "seed": "1",
        },
    )
    assert sim_param == PAR
Beispiel #2
0
 def test_get_simulation_data_bottleneck_001(self):
     sim_case = Simulation(self.mocks_path)
     sim_param = sim_case.get_simulation_parameters()
     PAR = (
         {
             "id": "simID",
             "pasdetemps": "1",
             "debut": "00:00:00",
             "fin": "00:00:30",
             "loipoursuite": "exacte",
             "comportementflux": "iti",
             "date": "1985-01-17",
             "titre": "",
             "proc_deceleration": "false",
             "seed": "1",
         },
         {
             "id": "simID2",
             "pasdetemps": "1",
             "debut": "00:00:00",
             "fin": "00:00:30",
             "loipoursuite": "exacte",
             "comportementflux": "iti",
             "date": "1985-01-17",
             "titre": "",
             "proc_deceleration": "false",
             "seed": "1",
         },
     )
     self.assertTupleEqual(sim_param, PAR)