def METHOD_NAME(self):
    """Test with a valid pending user and backend"""
    self.user.is_active = False
    self.user.save()
    plan = FlowPlan(flow_pk=self.flow.pk.hex, bindings=[self.binding], markers=[StageMarker()])
    plan.context[PLAN_CONTEXT_PENDING_USER] = self.user
    session = self.client.session
    session[SESSION_KEY_PLAN] = plan
    session.save()
    response = self.client.get(
        reverse("authentik_api:flow-executor", kwargs={"flow_slug": self.flow.slug})
    )
    self.assertEqual(response.status_code, 200)
    self.assertStageRedirects(response, reverse("authentik_core:root-redirect"))
    response = self.client.get(reverse("authentik_api:application-list"))
    self.assertEqual(response.status_code, 403)