def _determine_pip_tail(self, pkg_name, pkg_version):
        """This stuff is only coming from pip.ini."""
        req_str = '{}=={}'.format(pkg_name, pkg_version)
        link = self.finder(req_str=req_str)

        pip_tail = subtract_index_url(index_url=self.pip_index_url,
                                      pkg_url=link.url_without_fragment)

        return pip_tail
    def _determine_pip_tail(self, pkg_name, pkg_version):
        """This stuff is only coming from pip.ini."""
        req_str = '{}=={}'.format(pkg_name, pkg_version)
        link = self.finder(req_str=req_str)

        pip_tail = subtract_index_url(
            index_url=self.pip_index_url,
            pkg_url=link.url_without_fragment)

        return pip_tail
def validate_subtract_index_url(index_url, pkg_url, expected_tail):
    pip_tail = subtract_index_url(index_url=index_url, pkg_url=pkg_url)
    eq_(pip_tail, expected_tail)
def validate_subtract_index_url_failure(index_url, pkg_url):
    subtract_index_url(index_url=index_url, pkg_url=pkg_url)
def validate_subtract_index_url(index_url, pkg_url, expected_tail):
    pip_tail = subtract_index_url(index_url=index_url, pkg_url=pkg_url)
    eq_(pip_tail, expected_tail)
def validate_subtract_index_url_failure(index_url, pkg_url):
    subtract_index_url(index_url=index_url, pkg_url=pkg_url)