diff --git a/src/registrar/tests/test_views.py b/src/registrar/tests/test_views.py index ed47f3278..351b223d6 100644 --- a/src/registrar/tests/test_views.py +++ b/src/registrar/tests/test_views.py @@ -1415,29 +1415,27 @@ class TestDomainManagers(TestDomainOverview): add_page.form["email"] = email_address self.app.set_cookie(settings.SESSION_COOKIE_NAME, session_id) add_page.form.submit() - + expected_email_content = { - 'Simple': { - 'Subject': { - 'Data': 'You’ve been added to a .gov domain' - }, - 'Body': { - 'Text': { - 'Data': '\nHi.\n\nFirst Last has added you as a manager on igorville.gov.\n\n' - 'YOU NEED A LOGIN.GOV ACCOUNT\nYou’ll need a Login.gov account to manage your .gov domain. ' - 'Login.gov provides\na simple and secure process for signing into many government services with ' - 'one\naccount. If you don’t already have one, follow these steps to create your\nLogin.gov ' - 'account .\n\nDOMAIN MANAGEMENT\nAs a ' - '.gov domain manager you can add or update information about your domain.\nYou’ll also serve as ' - 'a contact for your .gov domain. Please keep your contact\ninformation updated. ' - 'Learn more about domain management .\n\nSOMETHING WRONG?\nIf you’re not ' - 'affiliated with igorville.gov or think you received this\nmessage in error, contact the ' - '.gov team .\n\n\nTHANK YOU\n\n.Gov helps the public identify ' - 'official, trusted information. ' - 'Thank you for\nusing a .gov domain.\n\n-------------------------------------------------------' - '---------\n\nThe .gov team\nContact us: \nVisit \n' + "Simple": { + "Subject": {"Data": "You’ve been added to a .gov domain"}, + "Body": { + "Text": { + "Data": "\nHi.\n\nFirst Last has added you as a manager on igorville.gov.\n\n" + "YOU NEED A LOGIN.GOV ACCOUNT\nYou’ll need a Login.gov account to manage your .gov domain. " + "Login.gov provides\na simple and secure process for signing into many government services with " + "one\naccount. If you don’t already have one, follow these steps to create your\nLogin.gov " + "account .\n\nDOMAIN MANAGEMENT\nAs a " + ".gov domain manager you can add or update information about your domain.\nYou’ll also serve as " + "a contact for your .gov domain. Please keep your contact\ninformation updated. " + "Learn more about domain management .\n\nSOMETHING WRONG?\nIf you’re not " + "affiliated with igorville.gov or think you received this\nmessage in error, contact the " + ".gov team .\n\n\nTHANK YOU\n\n.Gov helps the public identify " + "official, trusted information. " + "Thank you for\nusing a .gov domain.\n\n-------------------------------------------------------" + "---------\n\nThe .gov team\nContact us: \nVisit \n" } - } + }, } } # check the mock instance to see if `send_email` was called right