'Test the scenario where user tries to resend activation code
to the already activated user\'s email'

def test_resend_activation_email_activated_user(self):

    user = self.registration_profile.objects.create_inactive_user(site=Site.objects.get_current(), send_email=False, **self.user_info)
    profile = self.registration_profile.objects.get(user=user)
    activated = self.registration_profile.objects.activate_user(profile.activation_key, Site.objects.get_current())
    self.assertFalse(activated.is_active)
    self.assertFalse(self.registration_profile.objects.resend_activation_mail(email=self.user_info['email'], site=Site.objects.get_current()))
    self.assertEqual(len(mail.outbox), 1)
    admins_emails = [value[1] for value in settings.ADMINS]
    for email in mail.outbox[0].to:
        self.assertIn(email, admins_emails)
