#NEWLINE# @ require_module ( 'jinja2' ) #NEWLINE# def test_jinja_formatter( logger ) : #NEWLINE# #INDENT# from logbook.more import JinjaFormatter #NEWLINE# fmter = JinjaFormatter ( '{{ record.channel }}/{{ record.level_name }}' ) #NEWLINE# handler = logbook . TestHandler ( ) #NEWLINE# handler . formatter = fmter #NEWLINE# with handler : #NEWLINE# #INDENT# logger . info ( 'info' ) #NEWLINE# #UNINDENT# assert ( 'testlogger/INFO' in logger . formatted_records )