예제 #1
0
 def test_station_id_from_towards_alt_name_hr4(self):
     assert (tfl_tube.station_id_from_towards(
         "Heathrow via T4 Loop", "piccadilly") == "940GZZLUHR4")
예제 #2
0
 def test_station_id_from_towards_not_a_station(self):
     assert (tfl_tube.station_id_from_towards("Check Front of Train",
                                              "circle") is None)
예제 #3
0
 def test_station_id_from_towards_alt_name_circle(self):
     assert (tfl_tube.station_id_from_towards("Edgware Road (Circle)",
                                              "circle") == "940GZZLUERC")
예제 #4
0
 def test_station_id_from_towards_alt_name_hr5(self):
     assert (tfl_tube.station_id_from_towards(
         "Heathrow T123 + 5", "piccadilly") == "940GZZLUHR5")
예제 #5
0
 def test_station_id_from_towards_via_uppercase_v(self):
     assert (tfl_tube.station_id_from_towards("Woodford Via Hainault",
                                              "central") == "940GZZLUWOF")
예제 #6
0
 def test_station_id_from_towards_via_lowercase_v(self):
     assert (tfl_tube.station_id_from_towards("Hainault via Newbury Park",
                                              "central") == "940GZZLUHLT")
예제 #7
0
 def test_station_id_from_towards_apostrophe(self):
     assert (tfl_tube.station_id_from_towards("Queen's Park",
                                              "bakerloo") == "940GZZLUQPS")
예제 #8
0
 def test_station_id_from_towards_alt_name_ampersand(self):
     assert (tfl_tube.station_id_from_towards("Elephant and Castle",
                                              "bakerloo") == "940GZZLUEAC")
예제 #9
0
 def test_station_id_from_towards_normal(self):
     assert tfl_tube.station_id_from_towards("Hainault",
                                             "central") == "940GZZLUHLT"