コード例 #1
0
ファイル: lexnparse.py プロジェクト: Pluckyduck/eve
 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()
コード例 #2
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()
コード例 #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