Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_search_tiles_spitzbergen(self):
"""
Tests the tile searching over Spitzbergen in the polar zone; ROI defined
by a 4-corner polygon over high latitudes (is much curved on the globe).
"""
grid = Equi7Grid(500)
spitzbergen_geom = setup_test_geom_spitzbergen()
spitzbergen_geom_tiles = sorted(['EU500M_E054N042T6', 'EU500M_E054N048T6',
'EU500M_E060N042T6', 'EU500M_E060N048T6'])
tiles = sorted(grid.search_tiles_in_roi(spitzbergen_geom,
coverland=False))
assert sorted(tiles) == sorted(spitzbergen_geom_tiles)