(self)
| 192 | ) |
| 193 | |
| 194 | def setUp(self): |
| 195 | super().setUp() |
| 196 | |
| 197 | # Add a second port (serving the same app) to the HTTP server, so we can test the effects |
| 198 | # of redirects that span different origins. |
| 199 | sock, port = bind_unused_port() |
| 200 | self.http_server.add_socket(sock) |
| 201 | self.__port2 = port |
| 202 | |
| 203 | def get_url2(self, path: str) -> str: |
| 204 | return f"{self.get_protocol()}://127.0.0.1:{self.__port2}{path}" |
nothing calls this directly
no test coverage detected