'>>> register(OrganizationCreatedEvent)'

def register(self, event_cls):

    event_type = event_cls.type
    if (event_type in self._event_types):
        assert (self._event_types[event_type] == event_cls)
    else:
        self._event_types[event_type] = event_cls
