コード例 #1
0
ファイル: test_notifier.py プロジェクト: jaunis/xivo-dao
    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)
コード例 #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)
コード例 #3
0
ファイル: services.py プロジェクト: jaunis/xivo-dao
def create(context):
    validator.validate_create(context)
    created_context = context_dao.create(context)
    notifier.created(created_context)
    return created_context
コード例 #4
0
ファイル: services.py プロジェクト: jlebleu/xivo-dao
def create(context):
    validator.validate_create(context)
    created_context = context_dao.create(context)
    notifier.created(created_context)
    return created_context