def ext_functest_builder(method, func):
 def do_test(self):
  if (not isinstance(func, types.BuiltinFunctionType)):
   raise SkipTest(('%s extension not found' % func))
  method(self, func)
 return do_test

def ext_functest_builder ( method , func ) : def do_test ( self ) : if ( not isinstance ( func , types . BuiltinFunctionType ) ) : raise SkipTest ( ( '%s extension not found' % func ) ) method ( self , func ) return do_test
generate a test method that tests the given extension function .