Commit 35d291dd by Chris Jerdonek

Added a View unit test for extensionless template files.

parent cc18da30
...@@ -54,6 +54,12 @@ class ViewTestCase(unittest.TestCase): ...@@ -54,6 +54,12 @@ class ViewTestCase(unittest.TestCase):
template = Simple().load_template("escaped") template = Simple().load_template("escaped")
self.assertEquals(template, "<h1>{{title}}</h1>") self.assertEquals(template, "<h1>{{title}}</h1>")
def test_load_template__extensionless_file(self):
view = Simple()
view.template_extension = False
template = view.load_template('extensionless')
self.assertEquals(template, "No file extension: {{foo}}")
def test_custom_load_template(self): def test_custom_load_template(self):
""" """
Test passing a custom load_template to View.__init__(). Test passing a custom load_template to View.__init__().
......
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