def test_thankyou2(): email = ('Dear Test User,\n' '\n' ' Thank you for your kind donations totaling $77.77\n' '\n' ' Your gifts will be put to very good use.\n\n' ' Sincerely\n' ' -The Team\n') dl = Donorlist(init_tuple) assert dl.send_thankyou('Test User', 77.77, template='long') == email
def test_thankyou(): dl = Donorlist(init_tuple) email = 'Dear Test User, thank you for your generous donation of $77.77\n' assert dl.send_thankyou('Test User', 77.77) == email