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:
f37b968
)
add additional test for unicode multipart post
author
Jason Emerick
<jason@mobelux.com>
Tue, 2 Apr 2013 15:41:07 +0000
(11:41 -0400)
committer
Jason Emerick
<jason@mobelux.com>
Tue, 2 Apr 2013 15:41:07 +0000
(11:41 -0400)
test_requests.py
patch
|
blob
|
history
diff --git
a/test_requests.py
b/test_requests.py
index 13766a28cd6adbd5a508cd9a7a633510074a2b33..7c22e35eabcb33494f01823e1a52627284427ad2 100644
(file)
--- a/
test_requests.py
+++ b/
test_requests.py
@@
-292,6
+292,11
@@
class RequestsTestCase(unittest.TestCase):
files={'file': ('test_requests.py', open(__file__, 'rb'))})
self.assertEqual(r.status_code, 200)
+ r = requests.post(httpbin('post'),
+ data={'stuff': u'ëlïxr'.encode('utf-8')},
+ 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})},