def _generate_reset_key(user):
 return '{0}_reset_key'.format(user.name).lower()

def _generate_reset_key ( user ) : return '{0}_reset_key' . format ( user . name ) . lower ( )
return a reset key for the given user factory stub object .