#NEWLINE# def test_contracted_invoice_email_recipient( self ) : #NEWLINE# #INDENT# '\n        For contracted invoices, emails should be sent to finance@dimagi.com\n        ' #NEWLINE# expected_recipient = [ 'finance@dimagi.com' ] #NEWLINE# tasks . generate_invoices ( expected_recipient . invoice_date ) #NEWLINE# self . assertEqual ( Invoice . objects . count ( ) , 1 ) #NEWLINE# actual_recipient = Invoice . objects . first ( ) . email_recipients #NEWLINE# self . assertEqual ( actual_recipient , expected_recipient )