def test_get_index_urls_locations(self): """Check that the canonical name is on all indexes""" search_scope = SearchScope( find_links=[], index_urls=['file://index1/', 'file://index2'], ) actual = search_scope.get_index_urls_locations( install_req_from_line('Complex_Name').name ) assert actual == [ 'file://index1/complex-name/', 'file://index2/complex-name/', ]
def test_get_index_urls_locations(self) -> None: """Check that the canonical name is on all indexes""" search_scope = SearchScope( find_links=[], index_urls=["file://index1/", "file://index2"], ) req = install_req_from_line("Complex_Name") assert req.name is not None actual = search_scope.get_index_urls_locations(req.name) assert actual == [ "file://index1/complex-name/", "file://index2/complex-name/", ]