def get(self, url, headers, stream):
assert '<STR_LIT>' in url, '<STR_LIT>'<EOL>pkg_name, version = url.split('<STR_LIT>')<EOL>extra = '<STR_LIT>'<EOL>tarball_filepath = _create_pkg_tarball(self.tmpdir, pkg_name, version, deps=self.index[pkg_name][version][extra])<EOL>return MockRequestsResponse(url, tarball_filepath)<EOL>
Returns a mock valid tarball containing a single setup.py