예제 #1
0
 def test_transfer_route_accessor(self):
     busway_transfer = BuswayTransfer()
     busway_transfer.from_station = 'Halte ini'
     busway_transfer.to_station = 'Halte itu'
     busway_transfer_accessor.upset_busway_transfer(busway_transfer)
     post_busway_transfer = busway_transfer_accessor.get_busway_transfer(busway_transfer)
     """ :type post_busway_transfer: BuswayTransfer"""
     self.assertEqual(busway_transfer.from_station, post_busway_transfer.from_station)
     self.assertEqual(busway_transfer.to_station, post_busway_transfer.to_station)
예제 #2
0
def __update():
    route_list = helper.get_busway_transfers()
    for busway_transfer in route_list:
        busway_transfer_accessor.upset_busway_transfer(busway_transfer)
    __logger.info('Updated')