#NEWLINE# @ override_settings ( ANALYTICAL_AUTO_IDENTIFY = True ) #NEWLINE# def test_default_usertrack( self ) : #NEWLINE# #INDENT# context = Context ( { #NEWLINE# #INDENT# 'user' : User ( username = 'BDFL' , first_name = 'Guido' , last_name = 'van Rossum' ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# r = PiwikNode ( ) . render ( context ) #NEWLINE# msg = 'Incorrect Piwik user tracking rendering.\nNot found:\n%s\nIn:\n%s' #NEWLINE# var_code = '_paq.push(["setUserId", "BDFL"]);' #NEWLINE# self . assertIn ( var_code , r , ( msg % ( self , r ) ) )