def _mark_method_skipped(meth, reason):
 @functools.wraps(meth)
 def wrapper(*args, **kwargs):
  raise testtools.testcase.TestSkipped(reason)
 return wrapper

def _mark_method_skipped ( meth , reason ) : @ functools . wraps ( meth ) def wrapper ( * args , ** kwargs ) : raise testtools . testcase . TestSkipped ( reason ) return wrapper
mark method as skipped by replacing the actual method with wrapper that raises the testtools .