mirror of
https://github.com/kennethreitz-archive/pystache.git
synced 2026-06-05 23:40:16 +00:00
Removing cruft.
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user