def METHOD_NAME(self):
    a = GenericAction(
        trigger=Trigger(action="test-action", template=EmailTemplate())
    )
    with self.assertRaises(KeyError):
        a.get_additional_context(dict())  # missing 'request' object
    with self.assertRaises(AttributeError):
        # impossible to access `assigned_to` on a string
        a.get_additional_context(dict(request="dummy"))
    with self.assertRaises(AttributeError):
        # impossible to access `refresh_from_db` on a string
        a.get_additional_context(dict(request="dummy", event="dummy"))
    wr = WorkshopRequest()
    ctx = a.get_additional_context(dict(request=wr))
    self.assertEqual(ctx, {"request": wr, "assignee": "Regional Coordinator"})
    event = Event.objects.create(
        slug="test-event1",
        host=Organization.objects.first(),
        start=datetime(2020, 10, 30),
        end=datetime(2020, 11, 1),
    )
    event.tags.set([Tag.objects.get(name="SWC")])
    ctx = a.get_additional_context(dict(request=wr, event=event))
    self.assertEqual(
        ctx,
        {
            "request": wr,
            "workshop": event,
            "workshop_main_type": "SWC",
            "dates": "Oct 30 - Nov 01, 2020",
            "workshop_host": Organization.objects.first(),
            "regional_coordinator_email": ["workshops@carpentries.org"],
            "all_emails": [],
            "assignee": "Regional Coordinator",
            "tags": ["SWC"],
        },
    )