#NEWLINE# def testClockOutTooLong( self ) : #NEWLINE# #INDENT# end_time = ( self . entry . start_time + relativedelta ( hours = 13 ) ) #NEWLINE# data = { #NEWLINE# #INDENT# 'start_time_0' : self . entry . start_time . strftime ( '%m/%d/%Y' ) , #NEWLINE# 'start_time_1' : self . entry . start_time . strftime ( '%H:%M:%S' ) , #NEWLINE# 'end_time_0' : end_time . strftime ( '%m/%d/%Y' ) , #NEWLINE# 'end_time_1' : end_time . strftime ( '%H:%M:%S' ) , #NEWLINE# 'location' : self . location . pk , #NEWLINE# #UNINDENT# } #NEWLINE# response = self . client . post ( self . url , data ) #NEWLINE# err_msg = 'Ending time exceeds starting time by 12 hours or more for {0} on {1} at {2} to {3} at {4}.' . format ( self . entry . project , self . entry . start_time . strftime ( '%m/%d/%Y' ) , self . entry . start_time . strftime ( '%H:%M:%S' ) , end_time . strftime ( '%m/%d/%Y' ) , end_time . strftime ( '%H:%M:%S' ) ) #NEWLINE# self . assertFormError ( response , 'form' , None , err_msg )