

def test_walk_back(self):
    sc = ServiceCalendar()
    sc.add_period(0, ((1 * 3600) * 24), ['WKDY'])
    tz = Timezone()
    tz.add_period(TimezonePeriod(0, ((1 * 3600) * 24), 0))
    hb = HeadwayBoard('WKDY', tz, tz, 0, 'tr1', 200, 1000, 50)
    s0 = State(1, 0)
    s1 = hb.walk(s0, WalkOptions())
    s2 = hb.walk_back(s1, WalkOptions())
    assert (s2.trip_id == None)

dataset/ETHPy150Open bmander/graphserver/pygs/test/unit_test/test_headwayboard.py TestHeadwayBoard.test_walk_back/VarMisuse@71/92 `sc`->`tz`