Skip to content
Myr

Fixed formatting error in python2.6

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 75a9a98 · Browse files · 1 file+4 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+4 added−4 removed

  • tests:+4 added−4 removed

1 file+4 added−4 removed

modified:tests/test_utils.py+4 added-4 removed
162 unmodified lines
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://{}:{}/'.format(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 == 200
115 unmodified lines
287 "\r\nroflol"288 )289290 with server as (host, port):291 r = requests.get('http://{}:{}'.format(host, port))291 r = requests.get('http://{0}:{1}'.format(host, port))292293 assert r.status_code == 200294 assert r.text == 'roflol'295 assert r.headers['Content-Length'] == '6' 296 297 def test_basic_response(self):298 with Server.basic_response_server() as (host, port):299 r = requests.get('http://{}:{}'.format(host, port))299 r = requests.get('http://{0}:{1}'.format(host, port))300 assert r.status_code == 200301 assert r.text == ''302 assert r.headers['Content-Length'] == '0'303
13 unmodified lines
317 318 server = Server.basic_response_server(requests_to_handle=requests_to_handle)319320 with server as (host, port):321 server_url = 'http://{}:{}'.format(host, port)321 server_url = 'http://{0}:{1}'.format(host, port)322 for _ in range(requests_to_handle):323 r = requests.get(server_url)324 assert r.status_code == 200325
49 unmodified lines