code: def testPeriod2_BoundedFilter(self):
      weights = [3, 2, 1]
      values = [1, 2, 3]
  
      wma = self.__buildWMA(weights, values, wmaMaxLen=2)
      self.assertEqual(wma[0], None)
      self.assertEqual(
          wma[1], (1 * 3 + 2 * 2 + 3 * 1) / float(3 + 2 + 1)
      )
      self.assertEqual(len(wma), 2)
      self.assertEqual(len(wma[:]), 2)
      self.assertEqual(len(wma.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 5 for calling the WMATestCase obj's underlying member method code with example usage: obj.testPeriod2_BoundedFilter() without return types