#NEWLINE# def setUp( self ) : #NEWLINE# #INDENT# accounts = ga . authenticate ( ) #NEWLINE# if ( not len ( accounts ) ) : #NEWLINE# #INDENT# raise Exception ( 'Cannot proceed with unit testing:                 the authorized Google account does not use Google Analytics.' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . account = accounts [ 0 ] #NEWLINE# self . webproperty = self . account . webproperties [ 0 ] #NEWLINE# self . profile = self . webproperty . profiles [ 0 ] #NEWLINE# self . query = self . profile . core . query