Esempio n. 1
0
def verify(output, template, data):
    print("%s with %s" % (template, data))
    result = render(template, data)
    result_iter = ''.join(Stache().render_iter(template, data))
    print("Output: %s\n" % output)
    print("Result: %s\n" % result)
    assert result == output
    assert result == result_iter
Esempio n. 2
0
def bare(output, template, data):
    return render(template, data)