def test_next_trains_from_station(self): config = NationalRailEnquiriesWSDLServiceConfiguration.from_data( "wsdl", "nationalrailenquiries", "travel") config._station_codes_file = os.path.dirname( __file__) + os.sep + 'station_codes.csv' wsdl_client = NationalRailEnquiriesWSDLService(config) self.assertIsNotNone(wsdl_client) client = NationalRailEnquiriesServiceTestClient() wsdl_client.initialise(client) response = wsdl_client.next_trains_from_station('Kinghorn') self.assertIsNotNone(response)
def test_next_trains_from_station_platform_origin_destination(self): config = NationalRailEnquiriesWSDLServiceConfiguration.from_data( "wsdl", "nationalrailenquiries", "travel") config._station_codes_file = os.path.dirname( __file__) + os.sep + 'station_codes.csv' wsdl_client = NationalRailEnquiriesWSDLService(config) self.assertIsNotNone(wsdl_client) client = NationalRailEnquiriesServiceTestClient() wsdl_client.initialise(client) response = wsdl_client.next_trains_from_station( station='Kinghorn', platform='2', origin="Edinburgh", destination='Glenrothes with Thornton') self.assertIsNotNone(response)