#NEWLINE# def test_previous( self ) : #NEWLINE# #INDENT# task = ExtendedDateTaskOk ( datetime . date ( 2000 , 3 , 1 ) , 'some value' ) #NEWLINE# prev = previous ( task ) #NEWLINE# self . assertEqual ( prev . date , datetime . date ( 2000 , 2 , 29 ) ) #NEWLINE# self . assertEqual ( prev . param1 , 'some value' ) #NEWLINE# self . assertEqual ( prev . param2 , 2 )