@testhelp.context('sysmodel')
    def testMultipleFinds(self):
        self.addComponent('foo:runtime=1.0')
        self.addComponent('foo:lib=1.0')
        self.addCollection('foo=1.0', [ ':lib', ':runtime' ] )
        self._build(
                "t = world['foo']",
                "r.Group(t['foo:runtime'] + t['foo:lib'])",
                self.workDir % "r.writeDotGraph('%s/graph.dot')"
        )
        # ensure that the two lookups result in only one flatten
        # operation underneath; if this breaks, there will be two
        self.assertEquals(1, len([
            x for x in open('%s/graph.dot' % self.workDir).readlines()
            if 'Flatten' in x]))
dataset/ETHPy150Open sassoftware/conary/conary_test/cvctest/buildtest/groupsettest.py/GroupSetTest.testMultipleFinds/swapped operands of `%`