Skip to content
Myr

add a few more variations to the unicode multipart post test

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 82d36d8 · Browse files · 1 file+10 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+10 added−0 removed

  • other:+10 added−0 removed

1 file+10 added−0 removed

modified:test_requests.py+10 added
295 unmodified lines
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 r = requests.post(httpbin('post'),301 data={'stuff': 'elixr'},302 files={'file': ('test_requests.py', open(__file__, 'rb'))})303 self.assertEqual(r.status_code, 200)304305 r = requests.post(httpbin('post'),306 data={'stuff': 'elixr'.encode('utf-8')},307 files={'file': ('test_requests.py', open(__file__, 'rb'))})308 self.assertEqual(r.status_code, 200)309310 def test_custom_content_type(self):311 r = requests.post(httpbin('post'),312 data={'stuff': json.dumps({'a': 123})},313 files={'file1': ('test_requests.py', open(__file__, 'rb')),
112 unmodified lines