#NEWLINE# def test( self ) : #NEWLINE# #INDENT# self . assertTrue ( ( '/TestArray' in self . h5file ) ) #NEWLINE# arr = self . h5file . get_node ( '/TestArray' ) #NEWLINE# self . assertTrue ( isinstance ( arr , tables . Array ) ) #NEWLINE# self . assertEqual ( self . atom . type , self . type ) #NEWLINE# self . assertEqual ( arr . byteorder , self . byteorder ) #NEWLINE# self . assertEqual ( arr . shape , ( 6 , 5 ) ) #NEWLINE# data = arr . read ( ) #NEWLINE# expectedData = numpy . array ( [ [ 0 , 1 , 2 , 3 , 4 ] , [ 1 , 2 , 3 , 4 , 5 ] , [ 2 , 3 , 4 , 5 , 6 ] , [ 3 , 4 , 5 , 6 , 7 ] , [ 4 , 5 , 6 , 7 , 8 ] , [ 5 , 6 , 7 , 8 , 9 ] ] , dtype = self . type ) #NEWLINE# self . assertTrue ( common . areArraysEqual ( data , expectedData ) )