def _findAllForQueryClass(self, queryClass, queryList, methodName,
                              queryOptions):
        method = getattr(queryOptions.troveSource, methodName)
        while True:
            queueIds = []
            searchSpecs = []
            for query in queryList:
                searchList = query.nextSearchList()
                if not searchList:
                    continue
                for queueIdx, querySearchSpecs in searchList:
                    queueIds.extend((query, queueIdx) for x in querySearchSpecs)
                    searchSpecs.extend(querySearchSpecs)
            if not searchSpecs:
                return
            elif queryClass.useFilter or queryOptions.exactFlavors or \
                    queryOptions.requireLatest:
                newSearchSpecs = [ (x[0], x[1], None) for x in searchSpecs ]
                kw = dict(bestFlavor=False, troveTypes=queryOptions.troveTypes)
                results, errorList = method(newSearchSpecs, **kw)
                results, errorList = \
                        self._filterQueryResults( \
                        queueIds, searchSpecs, results, queryOptions)
            else:
                kw = dict(bestFlavor=queryOptions.bestFlavor,
                          troveTypes=queryOptions.troveTypes)
                results, errorList = method(searchSpecs, **kw)

            allInfo = itertools.izip(results, errorList, queueIds)

            for (troveList, errorList, (query, queueIdx)) in allInfo:
                if troveList:
                    query.foundResults(queueIdx, troveList)
                else:
                    query.noResultsFound(queueIdx, errorList)
Test the ability to remove a repository from a team.
dataset/ETHPy150Open sassoftware/conary/conary/repository/findtrove.py/TroveFinder._findAllForQueryClass--crossover with--dataset/ETHPy150Open sigmavirus24/github3.py/tests/integration/test_orgs.py/TestOrganization.test_remove_repository