def get_expected_validation_developer_message(preference_key, preference_value):
 return u"Value '{preference_value}' not valid for preference '{preference_key}': {error}".format(preference_key=preference_key, preference_value=preference_value, error={'key': [u'Ensure this value has at most 255 characters (it has 256).']})

def get_expected_validation_developer_message ( preference_key , preference_value ) : return u"Value '{preference_value}' not valid for preference '{preference_key}': {error}" . format ( preference_key = preference_key , preference_value = preference_value , error = { 'key' : [ u'Ensure this value has at most 255 characters (it has 256).' ] } )
returns the expected dict of validation messages for the specified key .