Пример #1
0
 def test_unmatched(self):  # at ASG
     assert (tfl_tube.departure_direction_from_platform_name(
         "Eastbound/Westbound - Platform 2/3") is None)
Пример #2
0
 def test_westbound_no_dash(self):  # at WLO
     assert (tfl_tube.departure_direction_from_platform_name(
         "Westbound Platform 26") == "Westbound")
Пример #3
0
 def test_eastbound_upper_b(self):  # at BDS
     assert (tfl_tube.departure_direction_from_platform_name(
         "EastBound - Platform 1") == "Eastbound")
Пример #4
0
 def test_inner(self):  # e.g. FLP
     assert (tfl_tube.departure_direction_from_platform_name(
         "Inner Rail - Platform 2", ) == "Inner Rail")
Пример #5
0
 def test_outer(self):  # e.g. FLP
     assert (tfl_tube.departure_direction_from_platform_name(
         "Outer Rail - Platform 1", ) == "Outer Rail")
Пример #6
0
 def test_southbound_fast(self):  # e.g. HOH
     assert (tfl_tube.departure_direction_from_platform_name(
         "Southbound Fast - Platform 6") == "Southbound")
Пример #7
0
 def test_southbound(self):
     assert (tfl_tube.departure_direction_from_platform_name(
         "Southbound - Platform 4") == "Southbound")
Пример #8
0
 def test_northbound(self):
     assert (tfl_tube.departure_direction_from_platform_name(
         "Northbound - Platform 1") == "Northbound")