#NEWLINE# def test_record_write_2d_array( self ) : #NEWLINE# #INDENT# '\n        Test writing to a 2D array within a structured type\n        ' #NEWLINE# rec = self . samplerec2darr . copy ( ) #NEWLINE# nbrecord = numpy_support . from_dtype ( recordwith2darray ) #NEWLINE# cfunc = self . get_cfunc ( record_write_2d_array , ( cfunc , ) ) #NEWLINE# cfunc ( rec ) #NEWLINE# expected = self . samplerec2darr . copy ( ) #NEWLINE# expected [ 'i' ] = 3 #NEWLINE# expected [ 'j' ] [ : ] = np . asarray ( [ 5.0 , 6.0 , 7.0 , 8.0 , 9.0 , 10.0 ] , np . float32 ) . reshape ( 3 , 2 ) #NEWLINE# np . testing . assert_equal ( expected , rec )