Commit 5f73682d by Chris Jerdonek

Added a unit test to test that we're checking for markupsafe correctly.

parent 9637ef6c
......@@ -38,6 +38,19 @@ class TemplateTestCase(unittest.TestCase):
"""
template.markupsafe = self.original_markupsafe
def test__was_markupsafe_imported(self):
"""
Test that our helper function works.
"""
markupsafe = None
try:
import markupsafe
except:
pass
self.assertEquals(bool(markupsafe), self._was_markupsafe_imported())
def test_init__escape__default_without_markupsafe(self):
template = Template()
self.assertEquals(template.escape(">'"), ">'")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment