#NEWLINE# def testCount( self ) : #NEWLINE# #INDENT# " Test aggregation method 'count' " #NEWLINE# assertEqual = self . assertEqual #NEWLINE# values = [ 'A' , 'B' , 'B' , 'C' ] #NEWLINE# aggregate = S3GroupAggregate ( 'count' , 'Example' , aggregate ) #NEWLINE# assertEqual ( aggregate . result , 3 ) #NEWLINE# values = None #NEWLINE# aggregate = S3GroupAggregate ( 'count' , 'Example' , values ) #NEWLINE# assertEqual ( aggregate . result , None ) #NEWLINE# values = 17 #NEWLINE# aggregate = S3GroupAggregate ( 'count' , 'Example' , values ) #NEWLINE# assertEqual ( aggregate . result , None )