<s> from jingo . tests . test_helpers import render <EOL> from nose . tools import eq_ <EOL> def test_safe ( ) : <EOL> """<STR_LIT>""" <EOL> txt = '<STR_LIT>' <EOL> rendered = render ( '<STR_LIT>' % txt ) <EOL> eq_ ( rendered , txt ) <EOL> def test_interpolation_nonsafe ( ) : <EOL> """<STR_LIT>""" <EOL> tpl = '<STR_LIT>' <EOL> rendered = render ( tpl ) <EOL> eq_ ( rendered , '<STR_LIT>' ) <EOL> def test_format_nonsafe ( ) : <EOL> """<STR_LIT>""" <EOL> tpl = '<STR_LIT>' <EOL> rendered = render ( tpl ) <EOL> eq_ ( rendered , '<STR_LIT>' ) <EOL> def test_trans_tag ( ) : <EOL> """<STR_LIT>""" <EOL> s = '<STR_LIT>' <EOL> eq_ ( render ( s ) , '<STR_LIT>' ) <EOL> def test_trans_interpolation ( ) : <EOL> """<STR_LIT>""" <EOL> s = """<STR_LIT>""" . strip ( ) <EOL> eq_ ( render ( s ) , '<STR_LIT>' ) </s>
