Skip to content

Commit

Permalink
Test using the same zoom level
Browse files Browse the repository at this point in the history
  • Loading branch information
loicgasser committed Mar 27, 2018
1 parent 323fcb5 commit 8220728
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_tilegrids.py
Original file line number Diff line number Diff line change
Expand Up @@ -623,6 +623,12 @@ def testGetParentTilesLV95(self):
z, x, y = [25, 700, 580]
self.assertEqual(len(grid.getParentTiles(z, x, y, 24)), 4)

# Check using the same zoom level for a child and a parent
tileAddresses = grid.getParentTiles(z, x, y, 25)
self.assertEqual(tileAddresses[0][0], 25)
self.assertEqual(tileAddresses[0][1], 700)
self.assertEqual(tileAddresses[0][2], 580)

def testGetParentTilesLV03(self):
grid = GeoadminTileGridLV03()

Expand Down

0 comments on commit 8220728

Please sign in to comment.