MCPcopy Index your code
hub / github.com/python/cpython / test_property

Method test_property

Lib/test/test_pydoc/test_pydoc.py:1777–1790  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1775
1776 @requires_docstrings
1777 def test_property(self):
1778 self.assertEqual(self._get_summary_lines(Rect.area), """\
1779area
1780 Area of the rect
1781""")
1782 # inherits the docstring from Rect.area
1783 self.assertEqual(self._get_summary_lines(Square.area), """\
1784area
1785 Area of the rect
1786""")
1787 self.assertIn("""
1788 | area
1789 | Area of the rect
1790""", pydoc.plain(pydoc.render_doc(Rect)))
1791
1792 @requires_docstrings
1793 def test_custom_non_data_descriptor(self):

Callers

nothing calls this directly

Calls 4

_get_summary_linesMethod · 0.95
assertInMethod · 0.80
plainMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected