human
Complete the below
def functest_builder(method, func):

    ''''Generate a test method that tests the given function.'
    '''
 ... Give me a the Python code you requested?
assistant
#Here is the Python code you requested.
    def do_test(self):
        method(self, func)
    return do_test