def test_uninstallpathset_no_paths(caplog):
 from pip.req.req_uninstall import UninstallPathSet
 from pkg_resources import get_distribution
 test_dist = get_distribution('pip')
 uninstall_set = UninstallPathSet(test_dist)
 uninstall_set.remove()
 assert ("Can't uninstall 'pip'. No files were found to uninstall." in caplog.text())

def test_uninstallpathset_no_paths ( caplog ) : from pip . req . req_uninstall import UninstallPathSet from pkg_resources import get_distribution test_dist = get_distribution ( 'pip' ) uninstall_set = UninstallPathSet ( test_dist ) uninstall_set . remove ( ) assert ( "Can't uninstall 'pip'. No files were found to uninstall." in caplog . text ( ) )
test uninstallpathset logs notification when there are no paths to uninstall .