Skip to content
Myr

Updated unit tests

Before adoption: this commit came in with the history the project adopted, so no landing records it.

#139

authored by Mike Waldner · committed by Mike Waldner · parent e46351c · Browse files · 1 file+3 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−4 removed

  • other:+3 added−4 removed

1 file+3 added−4 removed

modified:test_requests.py+3 added-4 removed
511 unmodified lines
512 curl_str = 'curl -L -X POST -H "Accept-Encoding:gzip" -H "User-Agent:python-requests.org" -F "some=@test_requests.py" "https://httpbin.ep.io/post"' 513 post2 = requests.post(httpsbin('post'), files={'some': open('test_requests.py')})514 self.assertEqual(curl_from_request(post2.request), curl_str)515516 #TODO - This doesn't seem right with \ \517 #curl_str = 'curl -L -X POST -H "Accept-Encoding:gzip" -H "User-Agent:python-requests.org" -d \'[{"some": "json"}]\' "http://httpbin.org/post"' 518 #post3 = requests.post(httpbin('post'), data='[{"some": "json"}]')519 #self.assertEqual(curl_from_request(post3.request), curl_str)516 curl_str = 'curl -L -X POST -H "Accept-Encoding:gzip" -H "User-Agent:python-requests.org" -d \'[{"some": "json"}]\' "http://httpbin.org/post"' 517 post3 = requests.post(httpbin('post'), data='[{"some": "json"}]')518 self.assertEqual(curl_from_request(post3.request), curl_str)519520521if __name__ == '__main__':522 unittest.main()