

def test_basic(self):
    sc = ServiceCalendar()
    sc.add_period(0, ((1 * 3600) * 24), ['WKDY', 'SAT'])
    tz = Timezone()
    tz.add_period(TimezonePeriod(0, ((1 * 3600) * 24), 0))
    hb = HeadwayBoard('WKDY', sc, tz, 0, 'hwtrip1', 0, 1000, 100)
    assert (hb.calendar.soul == sc.soul)
    assert (hb.timezone.soul == tz.soul)
    assert (hb.agency == 0)
    assert (hb.int_service_id == 0)
    assert (hb.trip_id == 'hwtrip1')
    assert (hb.start_time == 0)
    assert (hb.end_time == 1000)
    assert (hb.headway_secs == 100)
    hb.destroy()

dataset/ETHPy150Open bmander/graphserver/pygs/test/unit_test/test_headwayboard.py TestHeadwayBoard.test_basic/original