#NEWLINE# def test_admin_edits_org( self ) : #NEWLINE# #INDENT# user = self . admin . user #NEWLINE# request = request_factory_login ( self . factory , form ) #NEWLINE# form = OrganizationForm ( request , instance = self . org , data = { #NEWLINE# #INDENT# 'name' : self . org . name , #NEWLINE# 'slug' : self . org . slug , #NEWLINE# 'owner' : self . owner . id , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertTrue ( form . is_valid ( ) ) #NEWLINE# form = OrganizationForm ( request , instance = self . org , data = { #NEWLINE# #INDENT# 'name' : self . org . name , #NEWLINE# 'slug' : self . org . slug , #NEWLINE# 'owner' : self . admin . id , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertFalse ( form . is_valid ( ) )