Simple test to check --root option functionality

This commit is contained in:
hetmankp 2012-10-02 13:55:56 +10:00
parent 061954f29d
commit 1faa0c1876
1 changed files with 11 additions and 0 deletions

View File

@ -491,6 +491,17 @@ def test_install_package_with_target():
assert Path('scratch')/'target'/'initools' in result.files_created, str(result)
def test_install_package_with_root():
"""
Test installing a package using pip install --root
"""
env = reset_env()
root_dir = env.scratch_path/'root'
result = run_pip('install', '--root', root_dir, '--install-option=--home=', "initools==0.1")
assert Path('scratch')/'root'/'lib'/'python'/'initools' in result.files_created, str(result)
def test_find_command_folder_in_path():
"""
If a folder named e.g. 'git' is in PATH, and find_command is looking for