Exemplo n.º 1
0
def test_build_netloc(host_port, expected_netloc):
    assert build_netloc(*host_port) == expected_netloc
Exemplo n.º 2
0
 def trusted_hosts(self):
     # type: () -> Iterable[str]
     for host_port in self._link_collector.session.pip_trusted_origins:
         yield build_netloc(*host_port)
Exemplo n.º 3
0
def test_build_netloc(host_port: Tuple[str, Optional[int]],
                      expected_netloc: str) -> None:
    assert build_netloc(*host_port) == expected_netloc