def test_non_numeric(self): with pytest.raises(api.ClientError): api._parse_interpolation("Non numeric string")
def test_supported_methods_are_valid(self): for method in backend.INTERPOLATION_METHODS.keys(): assert api._parse_interpolation(method) == method
def test_default(self): assert api._parse_interpolation( None) == api.DEFAULT_INTERPOLATION_METHOD
def test_default_interpolation_is_valid(self): assert (api._parse_interpolation(api.DEFAULT_INTERPOLATION_METHOD) == api.DEFAULT_INTERPOLATION_METHOD)