Ejemplo n.º 1
0
def tag_by_mode_test():
    ww = helpers_tests.get_walking_walking_journey()
    _tag_journey_by_mode(ww)
    assert 'walking' in ww.tags
    wb = helpers_tests.get_walking_bike_journey()
    _tag_journey_by_mode(wb)
    assert 'bike' in wb.tags
    wbss = helpers_tests.get_walking_bss_journey()
    _tag_journey_by_mode(wbss)
    assert 'bss' in wbss.tags
    wc = helpers_tests.get_walking_car_journey()
    _tag_journey_by_mode(wc)
    assert 'car' in wc.tags
    cw = helpers_tests.get_car_walking_journey()
    _tag_journey_by_mode(cw)
    assert 'car' in cw.tags
    c = helpers_tests.get_car_journey()
    _tag_journey_by_mode(c)
    assert 'car' in c.tags
    bw = helpers_tests.get_bike_walking_journey()
    _tag_journey_by_mode(bw)
    assert 'bike' in bw.tags
    bbss = helpers_tests.get_bike_bss_journey()
    _tag_journey_by_mode(bbss)
    assert 'bike' in bbss.tags
    bc = helpers_tests.get_bike_car_journey()
    _tag_journey_by_mode(bc)
    assert 'car' in bc.tags
    bw = helpers_tests.get_bike_walking_journey()
    _tag_journey_by_mode(bw)
    assert 'bike' in bw.tags
    bssb = helpers_tests.get_bss_bike_journey()
    _tag_journey_by_mode(bssb)
    assert 'bike' in bssb.tags
    bssbss = helpers_tests.get_bss_bss_journey()
    _tag_journey_by_mode(bssbss)
    assert 'bss' in bssbss.tags
    bssc = helpers_tests.get_bss_car_journey()
    _tag_journey_by_mode(bssc)
    assert 'car' in bssc.tags
    bb = helpers_tests.get_bike_bike_journey()
    _tag_journey_by_mode(bb)
    assert 'bike' in bb.tags
    rs_car = helpers_tests.get_ridesharing_with_car_journey()
    _tag_journey_by_mode(rs_car)
    assert 'ridesharing' in rs_car.tags
    rs_crowfly = helpers_tests.get_ridesharing_with_crowfly_journey()
    _tag_journey_by_mode(rs_crowfly)
    assert 'ridesharing' in rs_crowfly.tags
Ejemplo n.º 2
0
def tag_by_mode_test():
    ww = helpers_tests.get_walking_walking_journey()
    _tag_journey_by_mode(ww)
    assert 'walking' in ww.tags
    wb = helpers_tests.get_walking_bike_journey()
    _tag_journey_by_mode(wb)
    assert 'bike' in wb.tags
    wbss = helpers_tests.get_walking_bss_journey()
    _tag_journey_by_mode(wbss)
    assert 'bss' in wbss.tags
    wc = helpers_tests.get_walking_car_journey()
    _tag_journey_by_mode(wc)
    assert 'car' in wc.tags
    cw = helpers_tests.get_car_walking_journey()
    _tag_journey_by_mode(cw)
    assert 'car' in cw.tags
    c = helpers_tests.get_car_journey()
    _tag_journey_by_mode(c)
    assert 'car' in c.tags
    bw = helpers_tests.get_bike_walking_journey()
    _tag_journey_by_mode(bw)
    assert 'bike' in bw.tags
    bbss = helpers_tests.get_bike_bss_journey()
    _tag_journey_by_mode(bbss)
    assert 'bike' in bbss.tags
    bc = helpers_tests.get_bike_car_journey()
    _tag_journey_by_mode(bc)
    assert 'car' in bc.tags
    bw = helpers_tests.get_bike_walking_journey()
    _tag_journey_by_mode(bw)
    assert 'bike' in bw.tags
    bssb = helpers_tests.get_bss_bike_journey()
    _tag_journey_by_mode(bssb)
    assert 'bike' in bssb.tags
    bssbss = helpers_tests.get_bss_bss_journey()
    _tag_journey_by_mode(bssbss)
    assert 'bss' in bssbss.tags
    bssc = helpers_tests.get_bss_car_journey()
    _tag_journey_by_mode(bssc)
    assert 'car' in bssc.tags