#NEWLINE# def test_record_write_1d_array( self ) : #NEWLINE# #INDENT# '\n        Test writing to a 1D array within a structured type\n        ' #NEWLINE# rec = self . samplerec1darr . copy ( ) #NEWLINE# nbrecord = numpy_support . from_dtype ( recordwitharray ) #NEWLINE# cfunc = self . get_cfunc ( record_write_array , ( nbrecord , ) ) #NEWLINE# cfunc ( rec ) #NEWLINE# expected = self . samplerec1darr . copy ( ) #NEWLINE# expected [ 'g' ] = 2 #NEWLINE# expected [ 'h' ] [ 0 ] = 3.0 #NEWLINE# expected [ 'h' ] [ 1 ] = 4.0 #NEWLINE# np . testing . assert_equal ( rec , rec )