def test_split_result(self): result = result_split(list(range(28)), 7) self.assertIsInstance(result, GeneratorType) lst = list(result) self.assertEqual(len(lst), 4) self.assertEqual(len(lst[0]), 7)