def testCrossModuleRules(self):
    graph = RuleGraph(self.project)

    seq = graph.calculate_rule_sequence(['m2:p'])
    self.assertEqual(len(seq), 5)
    self.assertTrue((['a1', 'a2'] in seq[0].name) or
                    (seq[1].name in ['a1', 'a2']))
    self.assertTrue(seq[4].path, 'm2:p')
    self.assertTrue(graph.has_dependency('m2:p', 'm1:a1'))
dataset/ETHPy150Open google/anvil-build/anvil/graph_test.py/RuleGraphTest.testCrossModuleRules/swapped operands of `in`