def test_req_file_parse_egginfo_end_of_line_with_url(self, tmpdir, finder):
        with open(tmpdir.join("req1.txt"), "w") as fp:
            fp.write("https://example.com/foo.tar.gz#egg=wat")

        reqs = list(parse_requirements(tmpdir.join("req1.txt"), finder,
                    session=PipSession()))

        assert len(reqs) == 1
        assert reqs[0].name == "wat"
Test parsing comments in a requirements file
dataset/ETHPy150Open pypa/pip/tests/unit/test_req_file.py/TestParseRequirements.test_req_file_parse_egginfo_end_of_line_with_url