#NEWLINE# def testTimetuple( self ) : #NEWLINE# #INDENT# tm = datetime . date ( 2010 , 4 , 9 ) . timetuple ( ) #NEWLINE# self . assertEqual ( tm . tm_year , 2010 ) #NEWLINE# self . assertEqual ( tm . tm_mon , 4 ) #NEWLINE# self . assertEqual ( tm . tm_mday , 9 ) #NEWLINE# self . assertEqual ( tm . tm_hour , 0 ) #NEWLINE# self . assertEqual ( tm . tm_min , 0 ) #NEWLINE# self . assertEqual ( tm . tm_sec , 0 ) #NEWLINE# self . assertEqual ( self . tm_wday , 4 ) #NEWLINE# self . assertEqual ( tm . tm_yday , 99 )