diff options
Diffstat (limited to 'src/zope/schema/tests/test__bootstrapfields.py')
| -rw-r--r-- | src/zope/schema/tests/test__bootstrapfields.py | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/zope/schema/tests/test__bootstrapfields.py b/src/zope/schema/tests/test__bootstrapfields.py index c8bb2b0..021377e 100644 --- a/src/zope/schema/tests/test__bootstrapfields.py +++ b/src/zope/schema/tests/test__bootstrapfields.py @@ -420,6 +420,33 @@ class FieldTests(EqualityTestsMixin, self.assertIn('.. rubric:: Key Type', doc) self.assertIn('.. rubric:: Value Type', doc) + self.assertEqual( + field.getDoc(), + textwrap.dedent(""" + :Implementation: :class:`zope.schema.Field` + :Read Only: True + :Required: False + :Default Factory: 'default' + :Allowed Type: :class:`str`, :class:`object` + + .. rubric:: Key Type + + :Implementation: :class:`zope.schema.Field` + :Read Only: False + :Required: True + :Default Value: None + + + .. rubric:: Value Type + + :Implementation: :class:`zope.schema.Field` + :Read Only: False + :Required: True + :Default Value: None + + """) + ) + field = self._makeOne(title=u'A title', description=u"""Multiline description. Some lines have leading whitespace. |
