Exemplo n.º 1
0
def test_render_var():
    token = Token('foo', tokens.TOKEN_VAR)
    assert render_django_token(token) == '{{ foo }}'
Exemplo n.º 2
0
def test_render_comment():
    token = Token('foo', tokens.TOKEN_COMMENT)
    assert render_django_token(token) == '{# foo #}'
Exemplo n.º 3
0
def test_render_text():
    token = Token('foo', tokens.TOKEN_TEXT)
    assert render_django_token(token) == 'foo'
Exemplo n.º 4
0
def test_render_block():
    token = Token('foo', tokens.TOKEN_BLOCK)
    assert render_django_token(token) == '{% foo %}'