def test_activation_nonexistent_key(self):
        # Due to the way activation keys are constructed during
        # registration, this will never be a valid key.
        invalid_key = hashlib.sha1(six.b('foo')).hexdigest()
        self.failIf(RegistrationProfile.objects.activate_user(invalid_key))
Attempting to activate with a non-existent key (i.e., one not
dataset/ETHPy150Open macropin/django-registration/registration/tests/models.py/RegistrationModelTests.test_activation_nonexistent_key