Example #1
0
 def test_higher_order_rot13(self):
     view = Lambdas()
     view.template = '{{#rot13}}abcdefghijklm{{/rot13}}'
     self.assertEquals(view.render(), 'nopqrstuvwxyz')
Example #2
0
 def test_higher_order_lambda(self):
     view = Lambdas()
     view.template = '{{#sort}}zyxwvutsrqponmlkjihgfedcba{{/sort}}'
     self.assertEquals(view.render(), 'abcdefghijklmnopqrstuvwxyz')
Example #3
0
 def test_higher_order_replace(self):
     view = Lambdas()
     self.assertEquals(view.render(),
                       'bar != bar. oh, it does!')