MCPcopy Create free account
hub / github.com/numpy/numpy / _has_method_heading

Function _has_method_heading

numpy/lib/tests/test_utils.py:173–176  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

171 pass
172
173 def _has_method_heading(cls):
174 out = StringIO()
175 utils.info(cls, output=out)
176 return 'Methods:' in out.getvalue()
177
178 assert _has_method_heading(WithPublicMethods)
179 assert not _has_method_heading(NoPublicMethods)

Callers 1

test_info_method_headingFunction · 0.85

Calls 1

infoMethod · 0.80

Tested by

no test coverage detected