#NEWLINE# def test_edit( self ) : #NEWLINE# #INDENT# response = self . post ( post_data = { #NEWLINE# #INDENT# 'title' : 'Edited site title' , #NEWLINE# 'email' : 'test@example.com' , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertEqual ( response . status_code , 302 ) #NEWLINE# default_site = Site . objects . get ( is_default_site = True ) #NEWLINE# setting = TestSetting . objects . get ( site = default_site ) #NEWLINE# self . assertEqual ( setting . title , 'Edited site title' ) #NEWLINE# self . assertEqual ( setting . email , 'test@example.com' )