#NEWLINE# def test_parsing_errors_get_js_variables( self ) : #NEWLINE# #INDENT# render = ( lambda t , c : Template ( t ) . render ( Context ( c ) ) ) #NEWLINE# self . assertRaises ( TemplateSyntaxError , render , '{% load hitcount_tags %}{% get_hit_count_js_variables as hit_count_js %}' , { #NEWLINE# #INDENT# 'post_variable_wrong' : self . post , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertRaises ( TemplateSyntaxError , render , '{% load hitcount_tags %}{% get_hit_count_js_variables as hit_count_js %}' , { #NEWLINE# #INDENT# 'post' : render . post , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertRaises ( TemplateSyntaxError , render , '{% load hitcount_tags %}{% get_hit_count_js_variables for post as hit_count_js %}' , { #NEWLINE# #INDENT# 'post' : 'bob the baker' , #NEWLINE# #UNINDENT# } )