'Test aggregation method \'avg\''

def testAvg(self):

    assertEqual = self.assertEqual
    values = [2, 1.7, 3, 1]
    aggregate = S3GroupAggregate('avg', 'Example', values)
    assertEqual(aggregate.result, 1.925)
    values = None
    aggregate = S3GroupAggregate('avg', 'Example', values)
    assertEqual(aggregate.result, None)
    values = ['1', 'other']
    aggregate = S3GroupAggregate('avg', 'Example', values)
    assertEqual(aggregate.result, None)
