#NEWLINE# @ setup ( { #NEWLINE# #INDENT# 'addslashes02' : '{{ a|addslashes }} {{ b|addslashes }}' , #NEWLINE# #UNINDENT# } ) #NEWLINE# def test_addslashes02( self ) : #NEWLINE# #INDENT# output = self . engine . render_to_string ( 'addslashes02' , { #NEWLINE# #INDENT# 'a' : "<a>'" , #NEWLINE# 'b' : mark_safe ( "<a>'" ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertEqual ( output , "&lt;a&gt;\\&#39; <a>\\'" )