Exemplo n.º 1
0
    def test_associated(self, send_bus_event_created, sysconf_reload_dialplan):
        context = Mock()

        notifier.created(context)

        sysconf_reload_dialplan.assert_called_once_with()
        send_bus_event_created.assert_called_once_with(context)
Exemplo n.º 2
0
    def test_associated(self, send_bus_event_created, sysconf_reload_dialplan):
        context = Mock()

        notifier.created(context)

        sysconf_reload_dialplan.assert_called_once_with()
        send_bus_event_created.assert_called_once_with(context)
Exemplo n.º 3
0
def create(context):
    validator.validate_create(context)
    created_context = context_dao.create(context)
    notifier.created(created_context)
    return created_context
Exemplo n.º 4
0
def create(context):
    validator.validate_create(context)
    created_context = context_dao.create(context)
    notifier.created(created_context)
    return created_context