#NEWLINE# @ pytest . mark . network #NEWLINE# def test_install_with_ignoreinstalled_requested( script ) : #NEWLINE# #INDENT# '\n    Test old conflicting package is completely ignored\n    ' #NEWLINE# script . pip ( 'install' , 'INITools==0.1' , expect_error = True ) #NEWLINE# result = script . pip ( 'install' , '-I' , 'INITools==0.3' , expect_error = True ) #NEWLINE# assert result . files_created , 'pip install -I did not install' #NEWLINE# assert os . path . exists ( ( ( script . site_packages_path / 'INITools-0.1-py%s.egg-info' ) % pyversion ) ) #NEWLINE# assert os . path . exists ( ( ( script . site_packages_path / 'INITools-0.3-py%s.egg-info' ) % pyversion ) )