Esempio n. 1
0
def test_build_netloc(host_port, expected_netloc):
    assert build_netloc(*host_port) == expected_netloc
Esempio 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)
Esempio n. 3
0
def test_build_netloc(host_port: Tuple[str, Optional[int]],
                      expected_netloc: str) -> None:
    assert build_netloc(*host_port) == expected_netloc