(server_address)
| 48 | |
| 49 | |
| 50 | def test_user_agent(server_address): |
| 51 | # type: (Tuple[str, int]) -> None |
| 52 | |
| 53 | host, port = server_address |
| 54 | url = "http://{host}:{port}".format(host=host, port=port) |
| 55 | url_fetcher = URLFetcher() |
| 56 | with url_fetcher.get_body_stream(url) as fp: |
| 57 | assert "pex/{version}".format(version=__version__) == fp.read().decode("utf-8") |
nothing calls this directly
no test coverage detected