From: David Kemp (Work) Date: Thu, 26 Jan 2012 18:45:38 +0000 (+0000) Subject: add failing test for unicode headers (python 2.x only) X-Git-Tag: v0.10.2~40 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f478c346712d730df0cbe410b632bd120b0589aa;p=services%2Fpython-requests.git add failing test for unicode headers (python 2.x only) --- diff --git a/test_requests.py b/test_requests.py index c3f3deb..eda9f79 100644 --- a/test_requests.py +++ b/test_requests.py @@ -111,6 +111,11 @@ class RequestsTestSuite(TestSetup, unittest.TestCase): r = get(httpbin('get') + '?test=true', params={'q': 'test'}, headers=heads) self.assertEqual(r.status_code, 200) + def test_session_with_unicode_headers(self): + heads = { u'User-Agent': u'\u30cd\u30c3\u30c8\u30ef\u30fc\u30af' } + + requests.get(url=httpbin('get'), headers=heads) + def test_user_agent_transfers(self): """Issue XX"""