This commit is contained in:
zandercymatics 2023-12-14 12:39:11 -07:00
parent 74161a86ee
commit ceec0a1efd
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7

View file

@ -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': 'Youve 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\nYoull 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 dont already have one, follow these steps to create your\nLogin.gov '
'account <https://login.gov/help/get-started/create-your-account/>.\n\nDOMAIN MANAGEMENT\nAs a '
'.gov domain manager you can add or update information about your domain.\nYoull also serve as '
'a contact for your .gov domain. Please keep your contact\ninformation updated. '
'Learn more about domain management <https://get.gov/help/>.\n\nSOMETHING WRONG?\nIf youre not '
'affiliated with igorville.gov or think you received this\nmessage in error, contact the '
'.gov team <https://get.gov/help/#contact-us>.\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: <https://get.gov/contact/>\nVisit <https://get.gov>\n'
"Simple": {
"Subject": {"Data": "Youve 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\nYoull 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 dont already have one, follow these steps to create your\nLogin.gov "
"account <https://login.gov/help/get-started/create-your-account/>.\n\nDOMAIN MANAGEMENT\nAs a "
".gov domain manager you can add or update information about your domain.\nYoull also serve as "
"a contact for your .gov domain. Please keep your contact\ninformation updated. "
"Learn more about domain management <https://get.gov/help/>.\n\nSOMETHING WRONG?\nIf youre not "
"affiliated with igorville.gov or think you received this\nmessage in error, contact the "
".gov team <https://get.gov/help/#contact-us>.\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: <https://get.gov/contact/>\nVisit <https://get.gov>\n"
}
}
},
}
}
# check the mock instance to see if `send_email` was called right