original_docstring: Make sure that we can decorate both methods and classes.
docstring: Make sure that we can decorate both methods and classes.
docstring_tokens: Make sure that we can decorate both methods and classes .
code: def _get_skip_method(obj):
      """Make sure that we can decorate both methods and classes."""
      if inspect.isclass(obj):
          if not _is_test_cls(obj):
              raise ValueError(NOT_TEST_OBJECT_ERROR_MSG)
          return _mark_class_skipped
      else:
          if not _is_test_method_name(obj.__name__):
              raise ValueError(NOT_TEST_OBJECT_ERROR_MSG)
          return _mark_method_skipped
code_tokens: def _get_skip_method ( obj ) : if inspect . isclass ( obj ) : if not _is_test_cls ( obj ) : raise ValueError ( NOT_TEST_OBJECT_ERROR_MSG ) return _mark_class_skipped else : if not _is_test_method_name ( obj . __name__ ) : raise ValueError ( NOT_TEST_OBJECT_ERROR_MSG ) return _mark_method_skipped
short_docstring: Make sure that we can decorate both methods and classes.
short_docstring_tokens: Make sure that we can decorate both methods and classes .
comment: """Make sure that we can decorate both methods and classes."""