'Tests if multiple decorators produce aggregate stats.'

def testMultipleFuncs(self):

    stats.STATS.RegisterCounterMetric('test_multiple_count')
    stats.STATS.RegisterEventMetric('test_multiple_timing', bins=[0, 1, 2])
    self.Func1(0)
    self.Func2(0)
    self.assertEqual(stats.STATS.GetMetricValue('test_multiple_count'), 2)
    self.Func3(0)
    self.Func4(1)
    m = stats.STATS.GetMetricValue('test_multiple_timing')
    self.assertEqual(m.bins_heights[0.0], 1)
    self.assertEqual(m.bins_heights[1], 1)
    self.assertEqual(m.bins_heights[2], 0)
