projects
/
services
/
python-requests.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
59b69d1
)
add test for unicode multipart post
author
Jason Emerick
<jason@mobelux.com>
Mon, 1 Apr 2013 22:10:12 +0000
(18:10 -0400)
committer
Jason Emerick
<jason@mobelux.com>
Mon, 1 Apr 2013 22:10:12 +0000
(18:10 -0400)
test_requests.py
patch
|
blob
|
history
diff --git
a/test_requests.py
b/test_requests.py
index 93b81236d80d3819ee37739865b8f206eec4ddd5..13766a28cd6adbd5a508cd9a7a633510074a2b33 100644
(file)
--- a/
test_requests.py
+++ b/
test_requests.py
@@
-286,6
+286,12
@@
class RequestsTestCase(unittest.TestCase):
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})},