diff --git a/pelican/tests/test_contents.py b/pelican/tests/test_contents.py
index d028c7a1..edd91fb6 100644
--- a/pelican/tests/test_contents.py
+++ b/pelican/tests/test_contents.py
@@ -319,17 +319,21 @@ class TestPage(LoggedTestCase):
)
# also test for summary in metadata
- args['metadata']['summary'] = (
+ parsed = (
'A simple summary test, with a '
'link'
)
- args['context']['localsiteurl'] = 'http://notmyidea.org'
- p = Page(**args)
- self.assertEqual(
- p.summary,
+ linked = (
'A simple summary test, with a '
'link'
)
+ args['settings']['FORMATTED_FIELDS'] = ['summary', 'custom']
+ args['metadata']['summary'] = parsed
+ args['metadata']['custom'] = parsed
+ args['context']['localsiteurl'] = 'http://notmyidea.org'
+ p = Page(**args)
+ self.assertEqual(p.summary, linked)
+ self.assertEqual(p.custom, linked)
def test_intrasite_link_more(self):
# type does not take unicode in PY2 and bytes in PY3, which in