示例#1
0
 def test_operators(self):
     from jinja2.lexer import operators
     for test, expect in operators.iteritems():
         if test in '([{}])':
             continue
         stream = env.lexer.tokenize('{{ %s }}' % test)
         stream.next()
 def test_operators(self):
     from jinja2.lexer import operators
     for test, expect in operators.iteritems():
         if test in '([{}])':
             continue
         stream = env.lexer.tokenize('{{ %s }}' % test)
         stream.next()
示例#3
0
def test_operators(env):
    from jinja2.lexer import operators
    for test, expect in operators.iteritems():
        if test in '([{}])':
            continue
        stream = env.lexer.tokenize('{{ %s }}' % test)
        stream.next()
        assert stream.current.type == expect