'Test aggregation method \'max\''

def testMax(self):

    assertEqual = self.assertEqual
    values = [2, 1.7, 3, 1]
    aggregate = S3GroupAggregate('max', 'Example', values)
    assertEqual(aggregate.result, 3)
    values = None
    aggregate = S3GroupAggregate('max', 'Example', values)
    assertEqual(aggregate.result, None)
    values = (lambda : None)
    aggregate = S3GroupAggregate('max', 'Example', values)
    assertEqual(aggregate.result, None)
