def register_function(self, function, name=None):

        if name is None:
            name = function.__name__
        self.funcs[name] = function
Setup the tests.
dataset/ETHPy150Open OpenCobolIDE/OpenCobolIDE/open_cobol_ide/extlibs/future/backports/xmlrpc/server.py/SimpleXMLRPCDispatcher.register_function--crossover with--dataset/ETHPy150Open openstack/oslo.middleware/oslo_middleware/tests/test_cors.py/CORSRegularRequestTest.setUp