Skip to content
Myr

add additional test for unicode multipart post

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

authored by Jason Emerick · committed by Jason Emerick · parent f37b968 · 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
290 unmodified lines
291 data={'stuff': u'ëlïxr'},292 files={'file': ('test_requests.py', open(__file__, 'rb'))})293 self.assertEqual(r.status_code, 200)294295 r = requests.post(httpbin('post'),296 data={'stuff': u'ëlïxr'.encode('utf-8')},297 files={'file': ('test_requests.py', open(__file__, 'rb'))})298 self.assertEqual(r.status_code, 200)299300 def test_custom_content_type(self):301 r = requests.post(httpbin('post'),302 data={'stuff': json.dumps({'a': 123})},303 files={'file1': ('test_requests.py', open(__file__, 'rb')),
112 unmodified lines