projects
/
services
/
python-requests.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0ef4f2
)
add failing test for unicode headers (python 2.x only)
author
David Kemp (Work)
<dkemp@brilliantmedia.co.uk>
Thu, 26 Jan 2012 18:45:38 +0000
(18:45 +0000)
committer
David Kemp (Work)
<dkemp@brilliantmedia.co.uk>
Thu, 26 Jan 2012 18:45:38 +0000
(18:45 +0000)
test_requests.py
patch
|
blob
|
history
diff --git
a/test_requests.py
b/test_requests.py
index c3f3deb646ebac7d86e8478b224df974d2547cd1..eda9f791f01d99d9085ef8b2c60818ddfbfc6d91 100644
(file)
--- 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"""