diff --git a/perma_web/perma/tests/test_views_common.py b/perma_web/perma/tests/test_views_common.py index 35624f0eb..42a5c8216 100644 --- a/perma_web/perma/tests/test_views_common.py +++ b/perma_web/perma/tests/test_views_common.py @@ -480,7 +480,7 @@ def test_contact_standard_submit_required(self): self.assertIn("Referring Page: " + self.refering_page, message.body) self.assertIn("Affiliations: (none)", message.body) self.assertIn("Logged in: false", message.body) - self.assertEqual(message.subject, self.subject_prefix + self.custom_subject) + self.assertTrue(message.subject.startswith(self.subject_prefix + self.custom_subject)) self.assertEqual(message.from_email, self.our_address) self.assertEqual(message.recipients(), [self.our_address]) self.assertDictEqual(message.extra_headers, {'Reply-To': self.from_email}) @@ -515,7 +515,7 @@ def test_contact_standard_submit_no_optional(self): self.assertIn("Referring Page: ", message.body) self.assertIn("Affiliations: (none)", message.body) self.assertIn("Logged in: false", message.body) - self.assertEqual(message.subject, self.subject_prefix + 'New message from Perma contact form') + self.assertTrue(message.subject.startswith(self.subject_prefix + 'New message from Perma contact form')) self.assertEqual(message.from_email, self.our_address ) self.assertEqual(message.recipients(), [self.our_address]) self.assertDictEqual(message.extra_headers, {'Reply-To': self.from_email})