

def test_activation_already_activated(self):
    '\n        Attempting to re-activate an already-activated account fails.\n        \n        '
    new_user = RegistrationProfile.objects.create_inactive_user(site=Site.objects.get_current(), **new_user.user_info)
    profile = RegistrationProfile.objects.get(user=new_user)
    RegistrationProfile.objects.activate_user(profile.activation_key)
    profile = RegistrationProfile.objects.get(user=new_user)
    self.failIf(RegistrationProfile.objects.activate_user(profile.activation_key))

dataset/ETHPy150Open codesters/codesters/registration/tests/models.py RegistrationModelTests.test_activation_already_activated/VarMisuse@31/68 `self`->`new_user`