#NEWLINE# def testNotAllowedToRejectTimesheet( self ) : #NEWLINE# #INDENT# entry = factories . Entry ( ** { #NEWLINE# #INDENT# 'user' : self . user , #NEWLINE# 'start_time' : ( timezone . now ( ) - relativedelta ( hours = 1 ) ) , #NEWLINE# 'end_time' : timezone . now ( ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# reject_url = self . get_reject_url ( entry . id ) #NEWLINE# response = self . client . get ( reject_url ) #NEWLINE# self . assertTrue ( response . status_code , 403 )