#NEWLINE# def test_render_json_template_require_int( tmpdir ) : #NEWLINE# #INDENT# ( template_path , template_name ) = _write_template_to_disk ( tmpdir , 'template.json' , '{"muffin_count": {{ MUFFIN_COUNT|require_int }}}' ) #NEWLINE# rendered_template = render_json_template ( template_path , template_name , ** { #NEWLINE# #INDENT# 'MUFFIN_COUNT' : '1' , #NEWLINE# #UNINDENT# } ) #NEWLINE# assert ( rendered_template [ 'muffin_count' ] == 1 )