def test_res_range_open_to(self): levels = LevelsResolutionRange([1000, None]) assert levels.for_grid(tile_grid_for_epsg(900913)) == [ 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, ]
def test_res_range_open_from(self): levels = LevelsResolutionRange([None, 100]) assert levels.for_grid(tile_grid_for_epsg(900913)) == [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, ]
def test_level_range_open_tos_range(self): levels = LevelsResolutionRange([1000, 100]) assert levels.for_grid(tile_grid_for_epsg(900913)) == [8, 9, 10, 11]
def test_res_range_open_to(self): levels = LevelsResolutionRange([1000, None]) eq_(levels.for_grid(tile_grid_for_epsg(900913)), [8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19])
def test_res_range_open_from(self): levels = LevelsResolutionRange([None, 100]) eq_(levels.for_grid(tile_grid_for_epsg(900913)), [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11])
def test_level_range_open_tos_range(self): levels = LevelsResolutionRange([1000, 100]) eq_(levels.for_grid(tile_grid_for_epsg(900913)), [8, 9, 10, 11])