add failing test for unicode headers (python 2.x only)

This commit is contained in:
David Kemp (Work)
2012-01-26 18:45:38 +00:00
parent a0ef4f2358
commit f478c34671
+5
View File
@@ -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"""