def test_myMatrixConcatWithNone(self): list_a = None list_b = [[5, 6], [7, 8]] target_array = np.asarray([[5, 6], [7, 8]]); return_val = myMatrixConcat(list_a, list_b) np.testing.assert_array_equal(return_val, target_array)
def test_myMatrixConcat(self): list_a = [[1, 2], [3, 4]] list_b = [[5, 6], [7, 8]] target_array = np.asarray([[1, 2], [3, 4], [5, 6], [7, 8]]); return_val = myMatrixConcat(list_a, list_b) np.testing.assert_array_equal(return_val, target_array)