Beispiel #1
0
def register(callback_func):
    current = abstracts.create_callback_handler(callback_func)

    data = {
        SmackClientSendCommand.__name__: SmackClientSendHandler,
        SmackClientSendResult.__name__: current
    }
    return data
Beispiel #2
0
def register(callback_func):
    current = abstracts.create_callback_handler(callback_func)

    data = {
        CheckSanityCommand.__name__: CheckSanityHandler,
        CheckSanityResult.__name__: current
    }
    return data
Beispiel #3
0
def register(callback_func):
    current = abstracts.create_callback_handler(callback_func)

    data = {
        CreateNewKeyCommand.__name__: CreateNewKeyHandler,
        CreateNewKeyResult.__name__: current
    }
    return data
Beispiel #4
0
def register(callback_func):
    current = abstracts.create_callback_handler(callback_func)
    data = {SmackServerReceiveResult.__name__: current}
    return data
Beispiel #5
0
 def setUp(self):
     self.mock_input = MagicMock()
     self.output = abstracts.create_callback_handler(self.mock_input)