Ejemplo n.º 1
0
 def write_osm_housenumbers(self, result_from_overpass: str) -> None:
     """Writes the result for overpass of Relation.get_osm_housenumbers_query()."""
     result = util.sort_housenumbers_csv(result_from_overpass)
     with self.get_osm_housenumbers_stream(mode="w") as stream:
         stream.write(result)
Ejemplo n.º 2
0
 def test_happy(self) -> None:
     """Tests the happy path."""
     unsorted = 'head\n2\n1'
     expected = 'head\n1\n2'
     self.assertEqual(util.sort_housenumbers_csv(unsorted), expected)