Пример #1
0
def test_agent_pid_4_complex_tour(test_activities, test_attributes):
    population = trip_based_travel_diary_read(test_activities, test_attributes)
    acts = [a.act for a in population.households[1].people[4].activities]
    assert acts == ['home', 'work', 'work', 'work', 'work', 'home']
Пример #2
0
def test_agent_pid_3_tour(test_activities, test_attributes):
    population = trip_based_travel_diary_read(test_activities, test_attributes)
    acts = [a.act for a in population.households['1'].people['3'].activities]
    print(acts)
    assert acts == ['home', 'work', 'shop', 'work', 'home']
Пример #3
0
def test_load(test_activities, test_attributes):
    population = trip_based_travel_diary_read(test_activities, test_attributes)
    assert population
Пример #4
0
def test_agent_pid_1_simple_tour(test_activities, test_attributes):
    population = trip_based_travel_diary_read(test_activities, test_attributes)
    acts = [a.act for a in population.households['0'].people['1'].activities]
    assert acts == ['home', 'work', 'home', 'other', 'home']