Beispiel #1
0
    def test_unwrap_list_generator(self):
        from raggregate.views.epistle import _unwrap_list

        test_list = [[[1]], [2], 3, [5], [[6]], [[9]]]
        ulist = []
        [ulist.append(e) for e in _unwrap_list(test_list)]

        self.assertEqual(ulist, [1, 2, 3, 5, 6, 9])
Beispiel #2
0
 def test_unwrap_list_generator(self):
     test_list = [[[1]], [2], 3, [5], [[6]], [[9]]]
     ulist = []
     [ulist.append(e) for e in _unwrap_list(test_list)]
     assert ulist == [1, 2, 3, 5, 6, 9]
Beispiel #3
0
 def test_unwrap_list_generator(self):
     test_list = [[[1]], [2], 3, [5], [[6]], [[9]]]
     ulist = []
     [ulist.append(e) for e in _unwrap_list(test_list)]
     assert ulist == [1, 2, 3, 5, 6, 9]