Exemple #1
0
 def test_get_natures_for_road(self):
     assert self.check_list_equal(rb.get_natures_for_road('TEST_STREET1'), [
         "Traffic Island Link At Junction", "Single Carriageway",
         "Dual Carriageway"
     ])
     assert self.check_list_equal(rb.get_natures_for_road('TEST_STREET2'),
                                  ["Single Carriageway"])
     assert self.check_list_equal(rb.get_natures_for_road('TEST_STREET3'), [
         "Traffic Island Link At Junction", "Single Carriageway",
         "Dual Carriageway"
     ])
     assert self.check_list_equal(rb.get_natures_for_road('TEST_STREET4'),
                                  ["Single Carriageway", "Slip Road"])
     assert self.check_list_equal(rb.get_natures_for_road('TEST_STREET5'), [
         "Single Carriageway", "Slip Road",
         "Traffic Island Link At Junction", "Dual Carriageway", "Roundabout"
     ])
Exemple #2
0
 def test_get_natures_for_unexistent_road(self):
     assert rb.get_natures_for_road('UNEXISTENT ROAD') == []
 def test_get_natures_for_unexistent_road(self):
     assert rb.get_natures_for_road('UNEXISTENT ROAD') == []
 def test_get_natures_for_road(self):
     assert self.check_list_equal(rb.get_natures_for_road('TEST_STREET1'), ["Traffic Island Link At Junction", "Single Carriageway", "Dual Carriageway"])
     assert self.check_list_equal(rb.get_natures_for_road('TEST_STREET2'), ["Single Carriageway"])
     assert self.check_list_equal(rb.get_natures_for_road('TEST_STREET3'), ["Traffic Island Link At Junction", "Single Carriageway", "Dual Carriageway"])
     assert self.check_list_equal(rb.get_natures_for_road('TEST_STREET4'), ["Single Carriageway", "Slip Road"])
     assert self.check_list_equal(rb.get_natures_for_road('TEST_STREET5'), ["Single Carriageway", "Slip Road", "Traffic Island Link At Junction", "Dual Carriageway", "Roundabout"])