Ejemplo n.º 1
0
 def test_complex_view(self):
     template = read_fixture('complex_view.mustache')
     lexed = read_fixture('complex_view.pyon')
     assert list(lex(template)) == lexed
Ejemplo n.º 2
0
 def test_complex_view(self):
     lexed = map(lambda x: Token(*x), read_fixture('complex_view.pyon'))
     parsed = read_fixture('complex_view.pickle')
     assert parse(lexed) == parsed