def test_enum_resource_parameter_process_value_invalid_value(self): param = EnumResourceParameter(values={"value1": "Value 1"}) with self.assertRaises(QueryParameterInvalidError): param.process_value("invalid")
def test_enum_resource_parameter_process_value_valid_value(self): param = EnumResourceParameter(values={"value1": "Value 1"}) processed = param.process_value("value1") self.assertEqual("value1", processed) # Returned unchanged