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