def test_pixel_size(self): """Test pixel size calculation.""" z = randint(0, 21) result = Mercator.pixel_size(z) assert result * 2**z == 156543.033928041