@override_settings(ACCOUNT_ACTIVATION_DAYS=7)
    def test_activation(self):
        resp = self.client.post(
            reverse('registration_register'),
            data=self.valid_data
        )

        profile = RegistrationProfile.objects.get(
            user__username=self.valid_data[self.user_model.USERNAME_FIELD]
        )

        resp = self.client.get(
            reverse(
                'registration_activate',
                args=(),
                kwargs={'activation_key': profile.activation_key}
            )
        )
        self.assertRedirects(resp, '/')
abort_on_prompt=True should abort when password prompts occur
dataset/ETHPy150Open ubernostrum/django-registration/registration/tests/test_views.py/ActivationViewTests.test_activation--crossover with--dataset/ETHPy150Open fabric/fabric/tests/test_network.py/TestNetwork.test_aborts_on_password_prompt_with_abort_on_prompt