@pytest.mark.network
def test_uninstall_easy_install_after_import(script):
 result = script.run('easy_install', 'INITools==0.2', expect_stderr=True)
 script.run('python', '-c', 'import initools')
 result2 = script.pip('uninstall', 'INITools', '-y')
 assert_all_changes(result, result2, [(script.venv / 'build'), 'cache', (script.site_packages / 'easy-install.pth')])

@ pytest . mark . network def test_uninstall_easy_install_after_import ( script ) : result = script . run ( 'easy_install' , 'INITools==0.2' , expect_stderr = True ) script . run ( 'python' , '-c' , 'import initools' ) result2 = script . pip ( 'uninstall' , 'INITools' , '-y' ) assert_all_changes ( result , result2 , [ ( script . venv / 'build' ) , 'cache' , ( script . site_packages / 'easy-install.pth' ) ] )
uninstall an easy_installed package after its been imported .