Exemplo n.º 1
0
 def disabled_test_gw_04(self):
     """
     Note: the function does not work for nested sublists,
     so this test will fail. That's why it is commented out.
     It does not make sense to check for failure, since it
     would be better if it did not fail. It's a fact of life.
     """
     a = np.array([[1], [2, [3, 4]], [], [2, 3, 4]])
     r = Utils.flatten_np_array(a)
     e = np.array([1, 2, 3, 4, 2, 3, 4])
     TestUtils.equal_np_matrix(self, r, e, 'flat array')