diff test/test_templating.py @ 6325:1a15089c2e49 issue2550923_computed_property

Merge trunk into branch
author John Rouillard <rouilj@ieee.org>
date Sat, 06 Feb 2021 20:15:26 -0500
parents fd0bdcbc68e4
children 6f89cdc7c938
line wrap: on
line diff
--- a/test/test_templating.py	Fri Jan 15 16:34:30 2021 -0500
+++ b/test/test_templating.py	Sat Feb 06 20:15:26 2021 -0500
@@ -566,6 +566,11 @@
         m = self.mangleMarkdown2(m)
         self.assertEqual(m.rstrip('\n'), '<p><a href="http://example.com/" rel="nofollow noopener" title="a title">label</a></p>')
 
+        p = StringHTMLProperty(self.client, 'test', '1', None, 'test', u2s(u'[label](http://example.com/).'))
+        m = p.markdown(hyperlink=1)
+        m = self.mangleMarkdown2(m)
+        self.assertEqual(m.rstrip('\n'), '<p><a href="http://example.com/" rel="nofollow noopener">label</a>.</p>')
+
         p = StringHTMLProperty(self.client, 'test', '1', None, 'test', u2s(u'![](http://example.com/)'))
         m = p.markdown(hyperlink=1)
         m = self.mangleMarkdown2(m)

Roundup Issue Tracker: http://roundup-tracker.org/