def setUp(self):
        """
        Create a user, then log in.
        """
        super().setUp()
        self.user = UserFactory()
        Registration().register(self.user)
        result = self.client.login(username=self.user.username, password="test")
        assert result, 'Could not log in'
        self.path = reverse('send_account_activation_email')