def METHOD_NAME(self):
    """Make sure `get_additional_context` works correctly."""
    a = NewSupportingInstructorAction(
        trigger=Trigger(action="test-action", template=EmailTemplate())
    )
    # method fails when obligatory objects are missing
    with self.assertRaises(KeyError):
        a.get_additional_context(dict())  # missing 'event'
    with self.assertRaises(KeyError):
        a.get_additional_context(dict(event="dummy"))  # missing 'task'
    with self.assertRaises(AttributeError):
        # now both objects are present, but the method tries to execute
        # `refresh_from_db` on them
        a.get_additional_context(dict(event="dummy", task="dummy"))
    e = Event.objects.create(
        slug="test-event",
        host=Organization.objects.first(),
        start=date.today() + timedelta(days=7),
        end=date.today() + timedelta(days=8),
        country="GB",
        venue="Ministry of Magic",
        address="Underground",
        latitude=20.0,
        longitude=20.0,
        url="https://test-event.example.com",
    )
    e.tags.set(Tag.objects.filter(name="SWC"))
    p = Person.objects.create(
        personal="Harry", family="Potter", email="hp@magic.uk"
    )
    r = Role.objects.create(name="supporting-instructor")
    t = Task.objects.create(event=e, person=p, role=r)
    ctx = a.get_additional_context(objects=dict(event=e, task=t))
    self.assertEqual(
        ctx,
        dict(
            workshop=e,
            workshop_main_type="SWC",
            dates=e.human_readable_date(),
            host=Organization.objects.first(),
            regional_coordinator_email=["admin-uk@carpentries.org"],
            person=p,
            instructor=p,
            role=r,
            task=t,
            assignee="Regional Coordinator",
            tags=["SWC"],
        ),
    )