def METHOD_NAME(self, post_event):
    realm, realm_user = force_realm_user()
    # first request redirects to realm auth
    enrollment = force_ota_enrollment(self.mbu, realm=realm)
    response = self.client.get(reverse("mdm_public:ota_enrollment_enroll", args=(enrollment.pk,)))
    self.assertEqual(response.status_code, 302)
    # fake the realm auth
    ras = RealmAuthenticationSession.objects.filter(realm=realm).first()
    self.assertRedirects(response, f"/public/realms/{realm.pk}/ldap/{ras.pk}/login/")
    ras.user = realm_user
    request = Mock()
    request.session = self.client.session
    url = ota_enroll_callback(request, ras, enrollment.pk)
    request.session.save()
    # second request returns the profile service payload
    self.assertEqual(url, reverse("mdm_public:ota_enrollment_enroll", args=(enrollment.pk,)))
    response = self.client.get(reverse("mdm_public:ota_enrollment_enroll", args=(enrollment.pk,)))
    self.assertEqual(response.status_code, 200)
    self.assertEqual(response["Content-Type"], "application/x-apple-aspen-config")
    _, profile_data = verify_signed_payload(response.content)
    profile = plistlib.loads(profile_data)
    self.assertEqual(profile["PayloadContent"]["URL"], "https://zentral/public/mdm/ota_session_enroll/")