def do_trim(value):
    return soft_unicode(value).strip()
Tests that, if the data exceeds what is allowed in a cookie, older
dataset/ETHPy150Open IanLewis/kay/kay/lib/jinja2/filters.py/do_trim--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.5/django/contrib/messages/tests/cookie.py/CookieTest.test_max_cookie_length