Merge pull request #7381 from edx/will/ecom-601

Copy changes to the activation email
This commit is contained in:
Will Daly
2015-03-18 14:30:32 -04:00
3 changed files with 95 additions and 20 deletions

View File

@@ -1302,7 +1302,10 @@ class RegistrationViewTest(ApiTestCase):
sent_email = mail.outbox[0]
self.assertEqual(sent_email.to, [self.EMAIL])
self.assertEqual(sent_email.subject, "Activate Your edX Account")
self.assertIn("activate your account", sent_email.body)
self.assertIn(
u"activating your {platform} account".format(platform=settings.PLATFORM_NAME),
sent_email.body
)
@ddt.data(
{"email": ""},