mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 22:50:18 +00:00
+3
-4
@@ -513,10 +513,9 @@ class RequestsTestSuite(unittest.TestCase):
|
||||
post2 = requests.post(httpsbin('post'), files={'some': open('test_requests.py')})
|
||||
self.assertEqual(curl_from_request(post2.request), curl_str)
|
||||
|
||||
#TODO - This doesn't seem right with \ \
|
||||
#curl_str = 'curl -L -X POST -H "Accept-Encoding:gzip" -H "User-Agent:python-requests.org" -d \'[{"some": "json"}]\' "http://httpbin.org/post"'
|
||||
#post3 = requests.post(httpbin('post'), data='[{"some": "json"}]')
|
||||
#self.assertEqual(curl_from_request(post3.request), curl_str)
|
||||
curl_str = 'curl -L -X POST -H "Accept-Encoding:gzip" -H "User-Agent:python-requests.org" -d \'[{"some": "json"}]\' "http://httpbin.org/post"'
|
||||
post3 = requests.post(httpbin('post'), data='[{"some": "json"}]')
|
||||
self.assertEqual(curl_from_request(post3.request), curl_str)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
Reference in New Issue
Block a user