#NEWLINE# def test_failing_nested_context_variable( self ) : #NEWLINE# #INDENT# manager = { #NEWLINE# #INDENT# 'all' : range ( 47 ) , #NEWLINE# #UNINDENT# } #NEWLINE# template = '{% $tagname 5 manager.all %}' #NEWLINE# with self . assertRaises ( TemplateSyntaxError ) as cm : #NEWLINE# #INDENT# self . render ( self . request ( ) , self , manager = manager ) #NEWLINE# #UNINDENT# self . assertIn ( 'manager.all' , str ( cm . exception ) )