def test_uninstall_gui_scripts(script):
 pkg_name = 'gui_pkg'
 pkg_path = create_test_package_with_setup(script, name=pkg_name, version='0.1', entry_points={'gui_scripts': ['test_ = distutils_install']})
 script_name = script.bin_path.join('test_')
 script.pip('install', pkg_path)
 assert script_name.exists
 script.pip('uninstall', pkg_name, '-y')
 assert (not script_name.exists)

def test_uninstall_gui_scripts ( script ) : pkg_name = 'gui_pkg' pkg_path = create_test_package_with_setup ( script , name = pkg_name , version = '0.1' , entry_points = { 'gui_scripts' : [ 'test_ = distutils_install' ] } ) script_name = script . bin_path . join ( 'test_' ) script . pip ( 'install' , pkg_path ) assert script_name . exists script . pip ( 'uninstall' , pkg_name , '-y' ) assert ( not script_name . exists )
make sure that uninstall removes gui scripts .