def test_validate_radius_valid(radius): tilequery = Tilequery() result = tilequery._validate_radius(radius) assert result == radius
def test_validate_radius_invalid(): tilequery = Tilequery() with raises(InvalidParameterError): tilequery._validate_radius(-1)