Removing cruft.

This commit is contained in:
Carl Whittaker
2011-01-27 17:29:04 +00:00
parent ede055af92
commit 2825d34eef
2 changed files with 0 additions and 9 deletions
-3
View File
@@ -61,9 +61,6 @@ class Template(object):
it = self.view.get(section_name, None)
replacer = ''
# Exception
if it and isinstance(it, Exception):
raise it
# Callable
if it and isinstance(it, collections.Callable):
replacer = it(inner)
-6
View File
@@ -97,12 +97,6 @@ class TestView(unittest.TestCase):
view.template = "{{#parent}}{{#children}}{{this}}{{/children}}{{/parent}}"
self.assertEquals(view.render(), 'derp')
def test_context_returns_a_flattened_dict(self):
view = Simple()
view.context_list = [{'one':'1'}, {'two':'2'}]
self.assertEqual(view.context, {'one': '1', 'two': '2'})
if __name__ == '__main__':
unittest.main()