Skip to content
Myr

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

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Kemp (Work) · committed by David Kemp (Work) · parent a0ef4f2 · Browse files · 1 file+5 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+5 added−0 removed

  • other:+5 added−0 removed

1 file+5 added−0 removed

modified:test_requests.py+5 added
109 unmodified lines
110111 r = get(httpbin('get') + '?test=true', params={'q': 'test'}, headers=heads)112 self.assertEqual(r.status_code, 200)113114 def test_session_with_unicode_headers(self):115 heads = { u'User-Agent': u'\u30cd\u30c3\u30c8\u30ef\u30fc\u30af' }116117 requests.get(url=httpbin('get'), headers=heads)118119120 def test_user_agent_transfers(self):121 """Issue XX"""122123 heads = {
613 unmodified lines