'Set a cookie with the latest search term.'

def test_search_cookie(self):

    data = {'q': u'pagap\xf3    banco'}
    cookie = settings.LAST_SEARCH_COOKIE
    response = self.client.get(reverse('search', locale='fr'), data)
    assert (cookie in response.cookies)
    eq_(urlquote(data['q']), response.cookies[cookie].value)
