#NEWLINE# def test_superuser_can_edit_invoiced_entry( self ) : #NEWLINE# #INDENT# 'Superuser should be able to edit an invoiced entry' #NEWLINE# self . client . logout ( ) #NEWLINE# self . login_user ( self . superuser ) #NEWLINE# ( url , entry , data ) = self . edit_entry_helper ( Entry . INVOICED ) #NEWLINE# response = self . client . post ( data , data = data , follow = True ) #NEWLINE# self . assertEqual ( response . status_code , 200 ) #NEWLINE# self . assertContains ( response , 'The entry has been updated successfully.' )