#NEWLINE# def test_edit( self ) : #NEWLINE# #INDENT# '\n        Check that editing settings in multi-site mode edits the correct\n        setting, and leaves the other ones alone\n        ' #NEWLINE# TestSetting . objects . create ( title = 'default' , email = 'default@example.com' , site = self . default_site ) #NEWLINE# TestSetting . objects . create ( title = 'other' , email = 'other@example.com' , site = self . other_site ) #NEWLINE# response = self . post ( site_pk = self . other_site . pk , post_data = { #NEWLINE# #INDENT# 'title' : 'other-new' , #NEWLINE# 'email' : 'other-other@example.com' , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertEqual ( other_setting . status_code , 302 ) #NEWLINE# other_setting = TestSetting . for_site ( self . other_site ) #NEWLINE# self . assertEqual ( other_setting . title , 'other-new' ) #NEWLINE# self . assertEqual ( other_setting . email , 'other-other@example.com' ) #NEWLINE# default_setting = TestSetting . for_site ( self . default_site ) #NEWLINE# self . assertEqual ( default_setting . title , 'default' ) #NEWLINE# self . assertEqual ( default_setting . email , 'default@example.com' )