def functest_builder(method, func):
 def do_test(self):
  method(self, func)
 return do_test

def functest_builder ( method , func ) : def do_test ( self ) : method ( self , func ) return do_test
generate a test method that tests the given function .