MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_docstring

Method test_docstring

test/ext/test_hybrid.py:1271–1281  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1269 )
1270
1271 def test_docstring(self):
1272 A = self._fixture()
1273 eq_(A.value.__doc__, "This is a class-level docstring")
1274 eq_(A.other_value.__doc__, "This is an instance-level docstring")
1275 a1 = A(_value=10)
1276
1277 # a1.value is still a method, so it has a
1278 # docstring
1279 eq_(a1.value.__doc__, "This is an instance-level docstring")
1280
1281 eq_(a1.other_value.__doc__, "This is an instance-level docstring")
1282
1283
1284class BulkUpdateTest(fixtures.DeclarativeMappedTest, AssertsCompiledSQL):

Callers

nothing calls this directly

Calls 3

_fixtureMethod · 0.95
eq_Function · 0.90
AClass · 0.70

Tested by

no test coverage detected