#NEWLINE# def add_entry_test_helper( self ) : #NEWLINE# #INDENT# self . login_user ( self . user ) #NEWLINE# response = self . client . post ( response . create_url , data = self . default_data , follow = True ) #NEWLINE# self . assertEqual ( response . status_code , 200 ) #NEWLINE# msg = 'You cannot add/edit entries after a timesheet has been approved or invoiced. Please correct the start and end times.' #NEWLINE# self . assertEqual ( [ msg ] , response . context [ 'form' ] . non_field_errors ( ) )