code: def testPeriod2_BoundedFilter(self):
      sma = self.__buildSMA(2, [0, 1, 2, 3, 4], 2)
      self.assertEqual(sma[0], (2 + 3) / float(2))
      self.assertEqual(sma[1], (3 + 4) / float(2))
      self.assertEqual(sma[1], sma[-1])
      self.assertEqual(len(sma.getDateTimes()), 2)
  
imports: from six.moves import xrange
  from .None import common
  from pyalgotrade.technical import ma
  from pyalgotrade import dataseries
  from pyalgotrade.barfeed import ninjatraderfeed
  from pyalgotrade import bar
label_desc: Use image node_id 4 for calling the SMATestCase obj's underlying member method code with example usage: obj.testPeriod2_BoundedFilter() without return types