Example #1
0
 def test_it(self):
     from eucaconsole.views import BaseView
     f = BaseView.escape_braces('{{ hello world }}')
     res = f(None, None)
     self.assertEqual(len(res), 1)
     self.assertEqual(res[0].value.s,
                      '{{ hello world }}')
Example #2
0
 def test_it(self):
     from eucaconsole.views import BaseView
     f = BaseView.escape_braces('{{ hello world }}')
     res = f(None, None)
     self.assertEqual(len(res), 1)
     self.assertEqual(res[0].value.s, '{{ hello world }}')