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