Skip to content
Myr

Moved test_chunked_upload to test_requests.py

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

authored by Braulio Valdivielso Martínez · committed by Braulio Valdivielso Martínez · parent 567b310 · Browse files · 1 file+0 added−17 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+0 added−17 removed

  • tests:+0 added−17 removed

1 file+0 added−17 removed

modified:tests/test_utils.py-17 removed
155 unmodified lines
156 <meta http-equiv="Content-type" content="text/html;charset=HTML4" />157 '''.strip()158 assert get_encodings_from_content(content) == ['HTML5', 'HTML4', 'XML']159160 def test_chunked_upload(self):161 """can safely send generators"""162 block_server = threading.Event()163 server = Server.basic_response_server(wait_to_close_event=block_server)164 data = (i for i in [b'a', b'b', b'c']) 165166 with server as (host, port):167 url = 'http://{0}:{1}/'.format(host, port)168 r = requests.post(url, data=data, stream=True)169 block_server.set() # release server block170171 assert r.status_code == 200172 assert r.request.headers['Transfer-Encoding'] == 'chunked'173174175176160USER = PASSWORD = "%!*'();:@&=+$,/?#[] "161ENCODED_USER = compat.quote(USER, '')162ENCODED_PASSWORD = compat.quote(PASSWORD, '')163
194 unmodified lines