(self)
| 1530 | return self.parse_cli_output(line) == (protocol, bind, port) |
| 1531 | |
| 1532 | def test_http_client(self): |
| 1533 | bind, port = '127.0.0.1', find_unused_port() |
| 1534 | proc = spawn_python('-u', '-m', 'http.server', str(port), '-b', bind, |
| 1535 | bufsize=1, text=True) |
| 1536 | self.addCleanup(kill_python, proc) |
| 1537 | self.addCleanup(proc.terminate) |
| 1538 | self.assertTrue(self.wait_for_server(proc, 'http', bind, port)) |
| 1539 | res = self.fetch_file(f'http://{bind}:{port}/{self.served_filename}') |
| 1540 | self.assertEqual(res, self.served_data) |
| 1541 | |
| 1542 | @unittest.skipIf(ssl is None, "requires ssl") |
| 1543 | def test_https_client(self): |
nothing calls this directly
no test coverage detected