Esempio n. 1
0
def test_agent_pid_3_tour(test_activities, test_attributes):
    population = load_activity_plan(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']
Esempio n. 2
0
def test_agent_pid_4_complex_tour(test_activities, test_attributes):
    population = load_activity_plan(test_activities, test_attributes)
    acts = [a.act for a in population.households['1'].people['4'].activities]
    assert acts == ['home', 'work', 'work', 'work', 'work', 'home']
Esempio n. 3
0
def test_load(test_activities, test_attributes):
    population = load_activity_plan(test_activities, test_attributes)
    assert population