def METHOD_NAME(self) -> None:
    event_handler = EventHandler(
        event="click", handler="alert(JSON.stringify(event.data));"
    )
    method = EventOff(event_handler=event_handler)
    method_dump = method.dump()
    self.assertEqual(
        {
            "id": method_dump["id"],
            "event": "click",
        },
        method_dump,
    )