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:
64eb415
)
adding test verifying data httpbin sees
author
barberj
<barber.justin@gmail.com>
Sun, 6 May 2012 23:24:37 +0000
(19:24 -0400)
committer
barberj
<barber.justin@gmail.com>
Sun, 6 May 2012 23:24:37 +0000
(19:24 -0400)
tests/test_requests.py
patch
|
blob
|
history
diff --git
a/tests/test_requests.py
b/tests/test_requests.py
index 4a71af75db0e6d644acce88bade0be3afb9aefa0..530008a34c06e6b6dfcb857b3568349dc772e71b 100755
(executable)
--- a/
tests/test_requests.py
+++ b/
tests/test_requests.py
@@
-353,6
+353,13
@@
class RequestsTestSuite(TestSetup, TestBaseMixin, unittest.TestCase):
post6 = post(url, files={'fname.txt': '\xe9'})
self.assertEqual(post6.status_code, 200)
+ post7 = post(url, files={'fname.txt': 'fdata to verify'})
+ rbody = json.loads(post7.text)
+ self.assertTrue(rbody.get('files', None))
+ self.assertTrue(rbody['files'].get('fname.txt'), None)
+ self.assertEqual(rbody['files']['fname.txt'], 'fdata to verify')
+
+
def test_nonzero_evaluation(self):
for service in SERVICES: