'Verify HttpResponse.set_cookie() works with unicode data.'

def test_unicode_cookie(self):

    response = HttpResponse()
    cookie_value = '\xe6\xb8\x85\xe9\xa2\xa8'
    response.set_cookie('test', cookie_value)
    self.assertEqual(cookie_value, response.cookies['test'].value)
