for result, expected in zip(yields, list_of_yields):
    self.assertTrue(close_round(result, expected, 7), msg=
        'Test failed: got {0} expected {1} at index {2}'.format(result,
        expected, index))
index += 1
Модульный тест в Python с участием двух списков