#NEWLINE# def test_get_flatpages_tag_for_user( self ) : #NEWLINE# #INDENT# 'The flatpage template tag retrives all flatpages for an authenticated user' #NEWLINE# out = Template ( '{% load flatpages %}{% get_flatpages for me as flatpages %}{% for page in flatpages %}{{ page.title }},{% endfor %}' ) . render ( Context ( { #NEWLINE# #INDENT# 'me' : self . me , #NEWLINE# #UNINDENT# } ) ) #NEWLINE# self . assertEqual ( out , 'A Flatpage,A Nested Flatpage,Sekrit Nested Flatpage,Sekrit Flatpage,' )