def getTrove(self, name, version = None, flavor = None,
            byDefault = True, troveList = [], cache = {}):
        class DummyTrove(object):
            def __init__(x, name, version, flavor, byDefault,
                    troveList, cache):
                x.name = name
                x.troveList = troveList
                x.byDefault = byDefault
                x.cache = cache
                if version == None:
                    version = versions.VersionFromString( \
                            '/test.rpath.local@rpl:linux//1.0.0-1-1')
                if flavor == None:
                    flavor = deps.parseFlavor('')
                x.version = version
                x.flavor = flavor
            def getNameVersionFlavor(x):
                return (x.name, x.version, x.flavor)
            getName = lambda x: x.name
            def iterTroveList(x, strongRefs = False, weakRefs = False):
                assert strongRefs and weakRefs
                for trv in x.troveList:
                    if strongRefs:
                        yield trv.getNameVersionFlavor()
                    if weakRefs:
                        for x in trv.iterTroveList(strongRefs, weakRefs):
                            yield x
            def iterTroveListInfo(x):
                for trv in x.troveList:
                    yield (trv.getNameVersionFlavor(), trv.byDefault, True)
                    for x in trv.iterTroveListInfo():
                        yield (x[0], x[1], False)
        return DummyTrove(name, version, flavor, byDefault, troveList, cache)
dataset/ETHPy150Open sassoftware/conary/conary_test/cvctest/buildtest/grouppolicytest.py/TestTroveWalk.getTrove/operator `or` -> `and`