#NEWLINE# def test( self ) : #NEWLINE# #INDENT# self . assertTrue ( ( '/ExtendibleArray' in self . h5file ) ) #NEWLINE# arr = self . h5file . get_node ( '/ExtendibleArray' ) #NEWLINE# self . assertTrue ( isinstance ( arr , tables . EArray ) ) #NEWLINE# self . assertEqual ( arr . byteorder , 'big' ) #NEWLINE# self . assertEqual ( arr . atom . type , 'int32' ) #NEWLINE# self . assertEqual ( arr . shape , ( 10 , 5 ) ) #NEWLINE# self . assertEqual ( arr . extdim , 0 ) #NEWLINE# self . assertEqual ( len ( arr ) , 10 ) #NEWLINE# data = arr . read ( ) #NEWLINE# expectedData = numpy . array ( [ [ 1 , 1 , 1 , 3 , 3 ] , [ 1 , 1 , 1 , 3 , 3 ] , [ 1 , 1 , 1 , 0 , 0 ] , [ 2 , 0 , 0 , 0 , 0 ] , [ 2 , 0 , 0 , 0 , 0 ] , [ 2 , 0 , 0 , 0 , 0 ] , [ 2 , 0 , 0 , 0 , 0 ] , [ 2 , 0 , 0 , 0 , 0 ] , [ 2 , 0 , 0 , 0 , 0 ] , [ 2 , 0 , 0 , 0 , 0 ] ] , dtype = arr . atom . type ) #NEWLINE# self . assertTrue ( common . areArraysEqual ( data , self ) )