Skip to content
Myr

Failing test for issue #2818

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

authored by Cory Benfield · committed by Cory Benfield · parent 978a89d · Browse files · 1 file+11 added−0 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+11 added−0 removed

  • other:+11 added−0 removed

1 file+11 added−0 removed

modified:test_requests.py+11 added
566 unmodified lines
567 r = requests.request(568 method=u('POST'), url=httpbin('post'), files=files)569 assert r.status_code == 200570571 def test_unicode_method_name_with_request_object(self):572 files = {'file': open('test_requests.py', 'rb')}573 s = requests.Session()574 req = requests.Request(u("POST"), httpbin('post'), files=files)575 prep = s.prepare_request(req)576 assert isinstance(prep.method, builtin_str)577 assert prep.method == "POST"578579 resp = s.send(prep)580 assert resp.status_code == 200581582 def test_custom_content_type(self):583 r = requests.post(584 httpbin('post'),585 data={'stuff': json.dumps({'a': 123})},
1140 unmodified lines