From 07607527193c681d369ec3cf0e20a5bb511adf16 Mon Sep 17 00:00:00 2001 From: Cem Eren Date: Thu, 19 Feb 2015 11:29:49 +0200 Subject: [PATCH] Added test for sanitizer for the issue of closing no-close tags --- gluon/tests/test_html.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gluon/tests/test_html.py b/gluon/tests/test_html.py index 27c7b725..27c46cbe 100644 --- a/gluon/tests/test_html.py +++ b/gluon/tests/test_html.py @@ -308,6 +308,9 @@ class TestBareHelpers(unittest.TestCase): # beware that the comparison is made on the XML repr self.assertEqual(XML('

HelloWorld

', sanitize=True), XML('

HelloWorld

')) + #bug check for the sanitizer for closing no-close tags + self.assertEqual(XML('

Test


Test


', sanitize=True), + XML('

Test


Test


')) def testTAG(self): self.assertEqual(TAG.first(TAG.second('test'), _key=3).xml(),