#NEWLINE# def test_simple( self ) : #NEWLINE# #INDENT# data = ( numpy . zeros ( ( 1 , 2 , 3 ) ) . astype ( numpy . float32 ) , ) #NEWLINE# ts = T . get_types ( data , 'name' , False ) #NEWLINE# self . assertIsInstance ( ts , T . TypeInfoTuple ) #NEWLINE# self . assertEqual ( 1 , len ( ts ) ) #NEWLINE# self . assertEqual ( 'name' , ts . name ) #NEWLINE# t = t [ 0 ] #NEWLINE# self . assertIsInstance ( t , T . Expr ) #NEWLINE# self . assertEqual ( 1 , t . shape [ 0 ] . eval ( ) ) #NEWLINE# self . assertEqual ( 2 , t . shape [ 1 ] . eval ( ) ) #NEWLINE# self . assertEqual ( 3 , t . shape [ 2 ] . eval ( ) ) #NEWLINE# self . assertEqual ( 3 , t . ndim . eval ( ) ) #NEWLINE# self . assertEqual ( numpy . float32 , t . dtype . eval ( ) )