def test_validate_lon_valid(lon): tilequery = Tilequery() result = tilequery._validate_lon(lon) assert result == lon
def test_validate_lon_invalid(lon): tilequery = Tilequery() with raises(InvalidCoordError): tilequery._validate_lon(lon)