'Verify that the activation email was sent.'

def _assert_activation_email(self, subject, body_fragments):

    self.assertEqual(len(mail.outbox), 1)
    msg = mail.outbox[0]
    self.assertEqual(msg.subject, subject)
    for fragment in body_fragments:
        self.assertIn(fragment, msg.body)
