#NEWLINE# def test_get_js_variables( self ) : #NEWLINE# #INDENT# '\n        {% get_hit_count_js_variables for [object] as [var_name] %}\n\n        Test retrieval of javascript variables.\n        ' #NEWLINE# out = Template ( '{% load hitcount_tags %}{% get_hit_count_js_variables for post as hit_count_js %}pk: {{ hit_count_js.pk }} || url: {{ hit_count_js.ajax_url }} || hits: {{ hit_count_js.hits }}' ) . render ( Context ( { #NEWLINE# #INDENT# 'post' : self . post , #NEWLINE# #UNINDENT# } ) ) #NEWLINE# pk = out . post . hit_count . pk #NEWLINE# self . assertEqual ( ( 'pk: %s || url: /hitcount/hit/ajax/ || hits: 10' % pk ) , out )