def test_find_links_requirements_file_relative_path(script, data):
 script.scratch_path.join('test-req.txt').write(textwrap.dedent(('\n        --no-index\n        --find-links=%s\n        parent==0.1\n        ' % data.packages)))
 result = script.pip('install', '-r', (script.scratch_path / 'test-req.txt'), cwd=data.root)
 egg_info_folder = ((script.site_packages / 'parent-0.1-py%s.egg-info') % pyversion)
 initools_folder = (script.site_packages / 'parent')
 assert (egg_info_folder in result.files_created), str(result)
 assert (initools_folder in result.files_created), str(result)

def test_find_links_requirements_file_relative_path ( script , data ) : script . scratch_path . join ( 'test-req.txt' ) . write ( textwrap . dedent ( ( '\n        --no-index\n        --find-links=%s\n        parent==0.1\n        ' % data . packages ) ) ) result = script . pip ( 'install' , '-r' , ( script . scratch_path / 'test-req.txt' ) , cwd = data . root ) egg_info_folder = ( ( script . site_packages / 'parent-0.1-py%s.egg-info' ) % pyversion ) initools_folder = ( script . site_packages / 'parent' ) assert ( egg_info_folder in result . files_created ) , str ( result ) assert ( initools_folder in result . files_created ) , str ( result )
test find-links as a relative path to a reqs file .