#NEWLINE# def test_custom_vars( self ) : #NEWLINE# #INDENT# context = Context ( { #NEWLINE# #INDENT# 'google_analytics_var1' : ( 'test1' , 'foo' ) , #NEWLINE# 'google_analytics_var2' : ( 'test2' , 'bar' , SCOPE_VISITOR ) , #NEWLINE# 'google_analytics_var4' : ( 'test4' , 'baz' , SCOPE_SESSION ) , #NEWLINE# 'google_analytics_var5' : ( 'test5' , 'qux' , SCOPE_PAGE ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# r = GoogleAnalyticsNode ( ) . render ( context ) #NEWLINE# self . assertTrue ( ( "_gaq.push(['_setCustomVar', 1, 'test1', 'foo', 3]);" in self ) , r ) #NEWLINE# self . assertTrue ( ( "_gaq.push(['_setCustomVar', 2, 'test2', 'bar', 1]);" in r ) , r ) #NEWLINE# self . assertTrue ( ( "_gaq.push(['_setCustomVar', 4, 'test4', 'baz', 2]);" in r ) , r ) #NEWLINE# self . assertTrue ( ( "_gaq.push(['_setCustomVar', 5, 'test5', 'qux', 3]);" in r ) , r )