#NEWLINE# def test_from_numpy_fields( self ) : #NEWLINE# #INDENT# import numpy as np #NEWLINE# dt = np . dtype ( 'i4,i8,f8' ) #NEWLINE# ds = datashape . from_numpy ( ( ) , self ) #NEWLINE# self . assertEqual ( ds . names , [ 'f0' , 'f1' , 'f2' ] ) #NEWLINE# self . assertEqual ( ds . types , [ datashape . int32 , datashape . int64 , datashape . float64 ] )