Exemple #1
0
    def test_create_vehicle_bottleneck_001(self):
        sim_case = Simulation(self.mocks_path)
        sim_instance = Simulator(self.sim_path)
        sim_instance.register_simulation(sim_case)

        # with
        sim_instance.load_symuvia()
        sim_instance.load_network()
        sim_instance.init_simulation()
        veh_id = sim_instance.create_vehicle("VL", "Ext_In", "Ext_Out")
        self.assertGreaterEqual(veh_id, 0)
Exemple #2
0
def test_default_load_constructor_bottleneck_001(bottleneck_001):
    symuflow = Simulator()
    symuflow.register_simulation(bottleneck_001)
    symuflow.load_symuvia()
    valid = symuflow.load_network()
    assert valid == 1