#NEWLINE# def test_multiple_simple( self ) : #NEWLINE# #INDENT# template = '' . join ( ( '{% load projector_tags %}' , '{% for author in authors %}{{ author|hide_email }}\n' , '{% endfor %}' ) ) #NEWLINE# authors = [ 'Joe Doe [joe.doe@example.com]' , 'Jack (jack@example.com)' ] #NEWLINE# context = { #NEWLINE# #INDENT# 'authors' : output , #NEWLINE# #UNINDENT# } #NEWLINE# output = render ( template , context ) #NEWLINE# self . assertEqual ( output , ( 'Joe Doe [%(sub)s]\nJack (%(sub)s)\n' % { #NEWLINE# #INDENT# 'sub' : self . sub , #NEWLINE# #UNINDENT# } ) )