def test_install_wheel_with_root(script, data):
    """
    Test installing a wheel using pip install --root
    """
    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 'root' / Path('scratch') in result.files_created
dataset/ETHPy150Open pypa/pip/tests/functional/test_install_wheel.py/test_install_wheel_with_root/swapped operands of `/`