From 8220728a9afbc3f68cc9c07e1d3cff35ddfccb68 Mon Sep 17 00:00:00 2001 From: loicgasser Date: Tue, 27 Mar 2018 15:52:23 +0000 Subject: [PATCH] Test using the same zoom level --- tests/test_tilegrids.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/test_tilegrids.py b/tests/test_tilegrids.py index 90477f1..0fec19b 100644 --- a/tests/test_tilegrids.py +++ b/tests/test_tilegrids.py @@ -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()