#NEWLINE# def test_created_by_is_not_updated( self ) : #NEWLINE# #INDENT# 'created_by should not be changed when updating a group.' #NEWLINE# user = self . create_superuser ( ) #NEWLINE# client = Client ( ) #NEWLINE# client . login ( username = user . email , password = 'moo' ) #NEWLINE# client . post ( reverse ( 'create_group' ) , { #NEWLINE# #INDENT# 'authgroup_form-name' : 'Writing tests on a Friday' , #NEWLINE# 'group_form-category' : '1' , #NEWLINE# #UNINDENT# } ) #NEWLINE# group = Group . objects . latest ( 'pk' ) #NEWLINE# self . assertEqual ( group . created_by , group )