#NEWLINE# @ pytest . mark . parametrize ( 'attr' , [ 'date' , 'year' , 'month' , 'day' , 'time' , 'hour' , 'second' , 'millisecond' , 'microsecond' ] ) #NEWLINE# def test_attributes( attr ) : #NEWLINE# #INDENT# t = symbol ( 't' , 'var * datetime' ) #NEWLINE# assert ( getattr ( t , attr ) . dshape is not None ) #NEWLINE# assert ( getattr ( t , attr ) . _child is t )