def _checkTupVers(self, tups, vers):
        for tup, item in itertools.izip(tups, vers):
            if isinstance(item, (list, tuple)):
                verStr, flStr = item
            else:
                verStr = item
                flStr = None

            if '-' in verStr:
                assert(str(tup[1].trailingRevision()) == verStr)
            else:
                assert(str(tup[1].trailingRevision().version) == verStr)
            if flStr:
                assert(str(tup[2]) == flStr)
dataset/ETHPy150Open sassoftware/conary/conary_test/queryreptest.py/RepQueryTest._checkTupVers/original