def format_quote(sender, body):
    lines = wrap(body, 55).split('\n')
    for i, line in enumerate(lines):
        lines[i] = "> %s" % line
    quote = '\n'.join(lines)
    return ugettext(u"%(sender)s wrote:\n%(body)s") % {
        'sender': sender,
        'body': quote
    }
Ensure file is cached to correct location when an alternate cachedir is
dataset/ETHPy150Open arneb/django-messages/django_messages/utils.py/format_quote--crossover with--dataset/ETHPy150Open saltstack/salt/tests/integration/fileclient_test.py/FileclientTest.test_cache_file_with_alternate_cachedir_and_relative_path