human
Here's a good function header given the following:
I wrote the below code

    if (app is None):
        return
    G = globals()
    for (key, val) in G.items():
        if key.startswith('TestForTool_'):
            del G[key]
    for (i, tool_id) in enumerate(app.toolbox.tools_by_id):
        tool = app.toolbox.get_tool(tool_id)
        if isinstance(tool, TOOL_TYPES_NO_TEST):
            continue
        if tool.tests:
            shed_tool_id = (None if (not testing_shed_tools) else tool.id)
            name = ('TestForTool_' + tool.id.replace('    ', '_'))
            baseclasses = (ToolTestCase,)
            namespace = dict()
            for (j, testdef) in enumerate(tool.tests):
                test_function_name = ('test_tool_%06d' % j)
                def make_test_method(td):
                    def test_tool(self):
                        self.do_it(td)
                    test_tool.__name__ = test_function_name
                    return test_tool
                test_method = make_test_method(testdef)
                test_method.__doc__ = ('%s    (    %s    )    >    %s' % (tool.name, tool.id, testdef.name))
                namespace[test_function_name] = test_method
                namespace['shed_tool_id'] = shed_tool_id
                namespace['master_api_key'] = master_api_key
                namespace['user_api_key'] = user_api_key
            new_class_obj = new.classobj(name, baseclasses, namespace)
            G[name] = new_class_obj

What's a good function header?
assistant
#Here's a good function header.

@nottest
def build_tests(app=None, testing_shed_tools=False, master_api_key=None, user_api_key=None):