Skip to content

Commit

Permalink
add test for unicode multipart post
Browse files Browse the repository at this point in the history
  • Loading branch information
jemerick committed Apr 1, 2013
1 parent 59b69d1 commit f0660e3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test_requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,12 @@ def test_different_encodings_dont_break_post(self):
files={'file': ('test_requests.py', open(__file__, 'rb'))})
self.assertEqual(r.status_code, 200)

def test_unicode_multipart_post(self):
r = requests.post(httpbin('post'),
data={'stuff': u'ëlïxr'},
files={'file': ('test_requests.py', open(__file__, 'rb'))})
self.assertEqual(r.status_code, 200)

def test_custom_content_type(self):
r = requests.post(httpbin('post'),
data={'stuff': json.dumps({'a': 123})},
Expand Down

0 comments on commit f0660e3

Please sign in to comment.