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)
Exemple #2
0
    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)