def test_get_tile_from_different_crs_tile_is_not_tilted_with_different_buffer(self):
    raster = self.read_only_virtual_geo_raster_wgs84()
    os.environ['TELLURIC_GET_TILE_BUFFER'] = '0'
    try:
        r = raster.get_tile(*tiles[18])
    except Exception:
        del os.environ['TELLURIC_GET_TILE_BUFFER']
    self.assertEqual(2, len(np.unique(r.image.mask)))
def test_get_tile_from_different_crs_tile_is_not_tilted_with_different_buffer(self):
    raster = self.read_only_virtual_geo_raster_wgs84()
    os.environ['TELLURIC_GET_TILE_BUFFER'] = '0'
    try:
        r = raster.get_tile(*tiles[18])
    except Exception:
        del os.environ['TELLURIC_GET_TILE_BUFFER']
    self.assertEqual(2, len(np.unique(r.image.mask)))