From 6bb743cb22b01a832edea73d040ac4375d2b5e12 Mon Sep 17 00:00:00 2001 From: Ondrej Grover Date: Sat, 10 May 2014 05:48:45 +0200 Subject: [PATCH] Test if summary is parsed by replacer --- pelican/tests/test_contents.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/pelican/tests/test_contents.py b/pelican/tests/test_contents.py index 1bceeb64..6f0f6dd9 100644 --- a/pelican/tests/test_contents.py +++ b/pelican/tests/test_contents.py @@ -316,6 +316,19 @@ class TestPage(LoggedTestCase): '?utm_whatever=234&highlight=word#section-2">link' ) + # also test for summary in metadata + args['metadata']['summary'] = ( + 'A simple summary test, with a ' + 'link' + ) + args['context']['localsiteurl'] = 'http://notmyidea.org' + p = Page(**args) + self.assertEqual( + p.summary, + 'A simple summary test, with a ' + 'link' + ) + def test_intrasite_link_more(self): # type does not take unicode in PY2 and bytes in PY3, which in # combination with unicode literals leads to following insane line: