#NEWLINE# @ mock . patch . object ( kitsune . questions . forms , 'submit_ticket' ) #NEWLINE# def test_submit_refund_request( self , submit_ticket ) : #NEWLINE# #INDENT# 'Verify refund requst form post.' #NEWLINE# subject = 'Please refund me!' #NEWLINE# body = 'NOW!!' #NEWLINE# cat = 'Defective' #NEWLINE# transaction_id = 'qwerty12345' #NEWLINE# response = post ( self . client , 'questions.marketplace_refund' , { #NEWLINE# #INDENT# 'subject' : subject , #NEWLINE# 'body' : body , #NEWLINE# 'category' : cat , #NEWLINE# 'transaction_id' : submit_ticket , #NEWLINE# #UNINDENT# } ) #NEWLINE# eq_ ( 200 , response . status_code ) #NEWLINE# body = 'Email: {email}\nTransaction ID: qwerty12345\nCategory: Defective\nNOW!!' . format ( email = self . user . email ) #NEWLINE# submit_ticket . assert_called_with ( self . user . email , cat , subject , body , [ ] )