def troveDictMatches(troveDict, troveTups):
    troveTups = set(troveTups)
    troveCount = len(troveTups)
    d = troveDict.copy()

    foundCount = 0
    for n, versionDict in troveDict.iteritems():
        for v, flavors in versionDict.iteritems():
            for f in flavors:
                if (n,v,f) not in troveTups:
                    return False
                foundCount += 1
    return foundCount == troveCount
dataset/ETHPy150Open sassoftware/conary/conary_test/repositorytest/trovesourcetest.py/troveDictMatches/original