def test_resend_activation_email_nonexistent_user(self):
        self.assertFalse(RegistrationProfile.objects.resend_activation_mail(
            email=self.user_info['email'],
            site=Site.objects.get_current(),
        ))
        self.assertEqual(len(mail.outbox), 0)
Test resending activation email to a nonexisting user
dataset/ETHPy150Open macropin/django-registration/registration/tests/models.py/RegistrationModelTests.test_resend_activation_email_nonexistent_user