def METHOD_NAME(self):
    registration_admin = RegistrationAdmin(Registration, self.site)
    request = self.factory.get("/fake-url/")
    request.user = self.admin
    self.assertEqual(["id"], registration_admin.get_readonly_fields(request))
    self.assertEqual(
        ["id", "event"],
        registration_admin.get_readonly_fields(request, self.registration),
    )