def test_count_answers(self):
    cases = [TestCase(sample, [3, 1])]
    for c in cases:
        groups = m.read_groups(c.text)
        nrs = []
        for group in groups:
            result = m.union_answers(group)
            nrs.append(result)
        self.assertEqual(nrs, c.output, c)
def test_count_answers(self):
    cases = [TestCase(sample, [3, 1])]
    for c in cases:
        groups = m.read_groups(c.text)
        nrs = []
        for group in groups:
            result = m.union_answers(group)
            nrs.append(result)
        self.assertEqual(nrs, c.output, c)