def test_fire_event(self): event_tasks.event('my_event', self, 1, 2, a=5) assert self.called_with == [((1, 2), {'a': 5})], self.called_with