Skip to content

Commit

Permalink
Test body and subject for email
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Etienne committed Jan 26, 2015
1 parent 33a1bbe commit 5ec447a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions user_management/api/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -886,4 +886,10 @@ def test_send_email(self):

self.assertEqual(len(mail.outbox), 1)
email = mail.outbox[0]

self.assertIn(user.email, email.to)
expected = 'http://example.com/#/register/verify/'
self.assertIn(expected, email.body)

expected = 'example.com account validate'
self.assertEqual(email.subject, expected)

0 comments on commit 5ec447a

Please sign in to comment.