def test_install_wheel_with_root(script, data):
 root_dir = (script.scratch_path / 'root')
 result = script.pip('install', 'simple.dist==0.1', '--root', root_dir, '--no-index', ('--find-links=' + data.find_links))
 assert ((Path('scratch') / 'root') in result.files_created)

def test_install_wheel_with_root ( script , data ) : root_dir = ( script . scratch_path / 'root' ) result = script . pip ( 'install' , 'simple.dist==0.1' , '--root' , root_dir , '--no-index' , ( '--find-links=' + data . find_links ) ) assert ( ( Path ( 'scratch' ) / 'root' ) in result . files_created )
test installing a wheel using pip install --root .