(self)
| 228 | impit.get(redirect_url, follow_redirects=True, max_redirects=1) |
| 229 | |
| 230 | def test_thread_server(self) -> None: |
| 231 | port_holder = [0] |
| 232 | thread = threading.Thread(target=thread_server, args=(port_holder,)) |
| 233 | thread.start() |
| 234 | time.sleep(0.1) |
| 235 | |
| 236 | response = impit.get(f'http://127.0.0.1:{port_holder[0]}/', timeout=5) |
| 237 | assert response.status_code == 200 |
| 238 | thread.join() |
| 239 | |
| 240 | |
| 241 | class TestRequestBody: |