#NEWLINE# def test_datetime_access( date_data ) : #NEWLINE# #INDENT# t = symbol ( 't' , 'var * {amount: float64, id: int64, name: string, when: datetime}' ) #NEWLINE# py_data = into ( list , date_data ) #NEWLINE# for attr in [ 'day' , 'minute' , 'second' , 'year' , 'month' ] : #NEWLINE# #INDENT# assert ( list ( compute ( getattr ( t . when , attr ) , date_data ) ) == list ( compute ( getattr ( t . when , attr ) , py_data ) ) )