def METHOD_NAME(self, actual, expected):
    self.assertEqual(len(actual), len(expected), actual)
    for i in range(len(actual)):
        self.assertIsInstance(actual[i], expected[i],
                                'item {}'.format(i))