MCPcopy Create free account
hub / github.com/ipython/ipython / test_class_signature

Function test_class_signature

IPython/core/tests/test_oinspect.py:201–204  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

199 nt.assert_equal(i['call_docstring'], Call.__call__.__doc__)
200
201def test_class_signature():
202 info = inspector.info(HasSignature, 'HasSignature')
203 nt.assert_equal(info['init_definition'], "HasSignature(test)")
204 nt.assert_equal(info['init_docstring'], HasSignature.__init__.__doc__)
205
206def test_info_awkward():
207 # Just test that this doesn't throw an error.

Callers

nothing calls this directly

Calls 1

infoMethod · 0.80

Tested by

no test coverage detected