| 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 | |
| 1284 | class BulkUpdateTest(fixtures.DeclarativeMappedTest, AssertsCompiledSQL): |