def METHOD_NAME(self):
    user = SuperUserFactory.create()
    # appointment in the past
    AppointmentInfoFactory.create(
        registration_ok=True, start_time="2021-11-01T17:00:00+01:00"
    )
    # appointment in the future
    AppointmentInfoFactory.create(
        registration_ok=True, start_time="2021-11-30T17:00:00+01:00"
    )
    changelist = self.app.get(
        reverse("admin:appointments_appointmentinfo_changelist"), user=user
    )
    self.assertEqual(changelist.status_code, 200)
    object_actions_col = changelist.pyquery(".field-get_object_actions")
    # future appointment
    app1_links = object_actions_col.eq(0).find("a")
    self.assertEqual(len(app1_links), 2)
    # past appointment
    app2_links = object_actions_col.eq(1).find("a")
    self.assertEqual(len(app2_links), 0)