def test_flatten_nested_list(self):
        self.assertEqual([1, 2, 3, 4], list(flatten([[1], [2, 3], [4]])))
Test flattening nested list
dataset/ETHPy150Open duerrp/pyexperiment/tests/test_functional.py/TestFlatten.test_flatten_nested_list