Beispiel #1
0
def test_removeFunction():
    caller = FunctionCaller('testCallerName')

    def empty():
        pass

    caller.addFunction('emptyFunctionName', empty)
    caller.removeFunction('emptyFunctionName')
    assert 'emptyFunctionName' not in caller.getFunctionDict()
Beispiel #2
0
def test_addFunction():
    caller = FunctionCaller('testCallerName')
    caller.addFunction('returnerFunctionName', returner)
    assert 'returnerFunctionName' in caller.getFunctionDict()