

def test_activation_email(self):
    '\n        ``RegistrationProfile.send_activation_email`` sends an\n        email.\n        \n        '
    new_user = User.objects.create_user(**new_user.user_info)
    profile = RegistrationProfile.objects.create_profile(new_user)
    profile.send_activation_email(Site.objects.get_current())
    self.assertEqual(len(mail.outbox), 1)
    self.assertEqual(mail.outbox[0].to, [self.user_info['email']])

dataset/ETHPy150Open codesters/codesters/registration/tests/models.py RegistrationModelTests.test_activation_email/VarMisuse@21/54 `self`->`new_user`