Fix unittest for jinja.do_markdown
We were passing invalid html to do_markdown, which was returning a valid version, by closing the <script> tag.
This commit is contained in:
@@ -11,8 +11,8 @@ class MarkdownTest(unittest.TestCase):
|
|||||||
def test_bleached(self):
|
def test_bleached(self):
|
||||||
from pillar.web import jinja
|
from pillar.web import jinja
|
||||||
|
|
||||||
self.assertEqual('<script>alert("hey");<script>',
|
self.assertEqual('<script>alert("hey");</script>',
|
||||||
jinja.do_markdown('<script>alert("hey");<script>').strip())
|
jinja.do_markdown('<script>alert("hey");</script>').strip())
|
||||||
|
|
||||||
def test_degenerate(self):
|
def test_degenerate(self):
|
||||||
from pillar.web import jinja
|
from pillar.web import jinja
|
||||||
|
Reference in New Issue
Block a user