Skip to content
Myr

add 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 59b69d1 · Browse files · 1 file+6 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+6 added−0 removed

  • other:+6 added−0 removed

1 file+6 added−0 removed

modified:test_requests.py+6 added
284 unmodified lines
285 params={'blah': 'asdf1234'},286 files={'file': ('test_requests.py', open(__file__, 'rb'))})287 self.assertEqual(r.status_code, 200)288289 def test_unicode_multipart_post(self):290 r = requests.post(httpbin('post'),291 data={'stuff': u'ëlïxr'},292 files={'file': ('test_requests.py', open(__file__, 'rb'))})293 self.assertEqual(r.status_code, 200)294295 def test_custom_content_type(self):296 r = requests.post(httpbin('post'),297 data={'stuff': json.dumps({'a': 123})},298 files={'file1': ('test_requests.py', open(__file__, 'rb')),
112 unmodified lines