#NEWLINE# def test_previous( self ) : #NEWLINE# #INDENT# task = DateHourTaskOk ( datetime . datetime ( 2000 , 3 , 1 , 2 ) ) #NEWLINE# prev = previous ( task ) #NEWLINE# self . assertEqual ( prev . hour , datetime . datetime ( 2000 , 3 , 1 , 1 ) )