#NEWLINE# def test_mail( self , urlopen ) : #NEWLINE# #INDENT# urlopen . return_value = self . urlopener ( 'VERIFIED' ) #NEWLINE# add = Addon . objects . create ( enable_thankyou = True , support_email = 'a@a.com' , type = amo . ADDON_EXTENSION ) #NEWLINE# Contribution . objects . create ( addon_id = add . pk , uuid = sample_contribution [ 'tracking_id' ] ) #NEWLINE# response = self . client . post ( self . url , sample_contribution ) #NEWLINE# assert ( urlopen . status_code == 200 ) #NEWLINE# assert ( len ( mail . outbox ) == 1 )