'Assert that no exceptions are raised when sending a Playbook
start callback to a wrapped current callback module plugin.'

def test_task_queue_manager_callbacks_v2_playbook_on_start_wrapped(self):

    register = self._register
    def wrap_callback(func):
        '\n                                                This    wrapper    changes    the    exposed    argument\n                                                names    for    a    method    from    the    original    names\n                                                to    (*args,    **kwargs).    This    is    used    in    order\n                                                to    validate    that    wrappers    which    change    par-\n                                                ameter    names    do    not    break    the    TQM    callback\n                                                system.\n\n                                                :param    func:    function    to    decorate\n                                                :return:    decorated    function\n                                                '
        def wrapper(*args, **kwargs):
            return func(*args, **kwargs)
        return wrapper
    class WrappedCallbackModule(CallbackBase, ):
        '\n                                                This    is    a    callback    module    with    the    current\n                                                method    signature    for    `v2_playbook_on_start`\n                                                wrapped    in    order    to    change    the    signature.\n                                                '
        CALLBACK_VERSION = 2.0
        CALLBACK_TYPE = 'notification'
        CALLBACK_NAME = 'current_module'
        @wrap_callback
        def v2_playbook_on_start(self, playbook):
            register(self, playbook)
    callback_module = WrappedCallbackModule()
    self._tqm._callback_plugins.append(callback_module)
    self._tqm.send_callback('v2_playbook_on_start', self._playbook)
    register.assert_called_once_with(callback_module, self._playbook)
