def test_a(self): results = {} q = Query(self.matches.keys()) for i, chain in enumerate(self.chains): for p, chain in q.validate(chain): try: results[p].append(i) except KeyError: results[p] = [i] self.assertDictEqual(self.matches, results)
def test_a(self): results = {} q = Query(self.matches.keys()) for i, chain in enumerate(self.chains): for p, _ in q.validate(chain): try: results[p].append(i) except KeyError: results[p] = [i] self.assertEqual(self.matches, results)