#NEWLINE# def testClockOutReverse( self ) : #NEWLINE# #INDENT# "\n        Test that the user can't clock out at a time prior to the starting time\n        " #NEWLINE# backward_entry = self . entry #NEWLINE# backward_entry . save ( ) #NEWLINE# data = { #NEWLINE# #INDENT# 'start_time_0' : self . default_end_time . strftime ( '%m/%d/%Y' ) , #NEWLINE# 'start_time_1' : self . default_end_time . strftime ( '%H:%M:%S' ) , #NEWLINE# 'end_time_0' : self . entry . start_time . strftime ( '%m/%d/%Y' ) , #NEWLINE# 'end_time_1' : self . entry . start_time . strftime ( '%H:%M:%S' ) , #NEWLINE# 'location' : self . location . pk , #NEWLINE# #UNINDENT# } #NEWLINE# response = self . client . post ( reverse ( 'clock_out' ) , data ) #NEWLINE# self . assertFormError ( response , 'form' , None , 'Ending time must exceed the starting time' )