def testAvg(self):

        assertEqual = self.assertEqual

        # Regular input
        values = [2, 1.7, 3, 1]
        aggregate = S3GroupAggregate("avg", "Example", values)
        assertEqual(aggregate.result, 1.925)

        # None gives always None
        values = None
        aggregate = S3GroupAggregate("avg", "Example", values)
        assertEqual(aggregate.result, None)

        # Invalid input: non-numeric type
        values = ["1", "other"]
        aggregate = S3GroupAggregate("avg", "Example", values)
        assertEqual(aggregate.result, None)

    # -------------------------------------------------------------------------
Print the tree summary table.
dataset/ETHPy150Open sahana/eden/modules/unit_tests/s3/s3grouped.py/S3GroupAggregateTests.testAvg--crossover with--dataset/ETHPy150Open CoAxLab/DeBaCl/debacl/level_set_tree.py/LevelSetTree.__str__