#NEWLINE# def setUp( self ) : #NEWLINE# #INDENT# patcher = patch ( 'django_comments_xtd.views.send_mail' ) #NEWLINE# self . mock_mailer = patcher . start ( ) #NEWLINE# self . article = Article . objects . create ( title = 'September' , slug = 'september' , body = "John's September" ) #NEWLINE# self . form = django_comments . get_form ( ) ( self . article ) #NEWLINE# self . data = { #NEWLINE# #INDENT# 'name' : 'Bob' , #NEWLINE# 'email' : 'bob@example.com' , #NEWLINE# 'followup' : True , #NEWLINE# 'reply_to' : 0 , #NEWLINE# 'level' : 1 , #NEWLINE# 'order' : 1 , #NEWLINE# 'comment' : 'Nice September you had...' , #NEWLINE# #UNINDENT# } #NEWLINE# self . data . update ( self . form . initial )