class_docstr: Unit test class for general utilities. 
class_docstr_tok: ["Unit","test","class","for","general","utilities","."]
docstr: Tests list flattening. 
docstr_tok: ["Tests","list","flattening","."]
code: def test_list_flattening(self):
      """Tests list flattening."""
      self.report("Testing list flattening.")
      # Test 1
      test_lists = [[4, 5, 1], [4, 5, 6, ["k", None], 5]]
      test_results = [[4, 5, 1], [4, 5, 6, "k", None, 5]]
      for tl, tr in zip(test_lists, test_results):
          result = general_utils.flatten_list_of_objects_and_lists(tl)
          assert tr == result
      # Test 2
      test_lists.extend([["q", "we", [7, ["3", str, int], 9], "k"]])
      test_results.extend([["q", "we", 7, "3", str, int, 9, "k"]])
      for tl, tr in zip(test_lists, test_results):
          result = general_utils.flatten_nested_lists(tl)
          assert tr == result
  
file_path: dragonfly/dragonfly/utils/unittest_general_utils.py
imports: from __future__ import absolute_import
  from __future__ import division
  import numpy
  from .None import general_utils
  from .base_test_class import BaseTestClass, execute_tests
label_desc: Use image node_id 9 for calling the GeneralUtilsTestCase obj's underlying member method code with example usage: obj.test_list_flattening() without return types