def test_site_packages(self):
        """Can we see packages in site_packages."""
        dirname = os.path.join(sys.prefix, "lib", "python2.5", "site-packages")
        repo = EasyInstallRepository(location=dirname)
        print ("Reading %s..." % dirname)
        repo.build_package_list()
        print ("done.\n")

        print repo.pretty_packages()
    def test_all_packages(self):
        """Can we see packages in site_packages."""
        repos = []
        for dirname in remove_eggs_from_path(sys.path):
            repo = EasyInstallRepository(location=dirname)
            print ("Reading %s..." % dirname)
            repo.build_package_list()
            print ("done.\n")

            repos.append(repo)

        for repo in repos:
            print repo.location
            for pkg in repo.active_packages:
                print "   ", pkg.name