def _mark_class_skipped(cls, reason):
 tests = [attr for attr in dir(cls) if (_is_test_method_name(attr) or _is_test_fixture(attr))]
 for test in tests:
  method = getattr(cls, test)
  if callable(method):
   setattr(cls, test, _mark_method_skipped(method, reason))
 return cls

def _mark_class_skipped ( cls , reason ) : tests = [ attr for attr in dir ( cls ) if ( _is_test_method_name ( attr ) or _is_test_fixture ( attr ) ) ] for test in tests : method = getattr ( cls , test ) if callable ( method ) : setattr ( cls , test , _mark_method_skipped ( method , reason ) ) return cls
mark every test method of the class as skipped .