def execute_test(self):
        # Initialize the source
        data  = [[0.0, 0.0], [1, 0.1], [2, 0.2], [3, 0.3], [4, 0.4]]
        tsSrc = TimeSeries.from_twodim_list(data)
        tsSrc.normalize("second")

        # Initialize a correct result.
        # The numbers look a little bit odd, based on the binary translation problem
        data  = [[1.5, 0.10000000000000002],[2.5, 0.20000000000000004],[3.5, 0.3]]
        tsDst = TimeSeries.from_twodim_list(data)

        # Initialize the method
        sma = SimpleMovingAverage(3)
        res = tsSrc.apply(sma)

        #print tsSrc, res
        if not res == tsDst: raise AssertionError
Test the execution of SimpleMovingAverage.
dataset/ETHPy150Open T-002/pycast/pycast/tests/methodtest.py/SimpleMovingAverageTest.execute_test