Chris Hill-Scott
2018-04-09 16:30:24 +01:00
parent a0c6f6a22e
commit c9882e2f9c
7 changed files with 10 additions and 10 deletions

View File

@@ -120,7 +120,7 @@ def test_get_notification_by_id_with_placeholders_returns_200(
'status': '{}'.format(sample_notification.status),
'template': expected_template_response,
'created_at': sample_notification.created_at.strftime(DATETIME_FORMAT),
'body': "Hello Bob\nThis is an email from GOV.\u200bUK",
'body': "Hello Bob\nThis is an email from GOV.UK",
"subject": "Bob",
'sent_at': sample_notification.sent_at,
'completed_at': sample_notification.completed_at(),

View File

@@ -313,7 +313,7 @@ def test_post_email_notification_returns_201(client, sample_email_template_with_
assert notification.reference is None
assert notification.reply_to_text is None
assert resp_json['content']['body'] == sample_email_template_with_placeholders.content \
.replace('((name))', 'Bob').replace('GOV.UK', u'GOV.\u200bUK')
.replace('((name))', 'Bob')
assert resp_json['content']['subject'] == sample_email_template_with_placeholders.subject \
.replace('((name))', 'Bob')
assert resp_json['content']['from_email'] == "{}@{}".format(