

def testPeriod2_ClosingPrice(self):
    barFeed = self.__getFeed()
    bars = barFeed[VWAPTestCase.Instrument]
    vwap_ = vwap.VWAP(bars, 2)
    barFeed.loadAll()
    self.assertEqual(bars[0], None)
    for i in xrange(1, len(vwap_)):
        self.assertNotEqual(vwap_[i], None)

dataset/ETHPy150Open gbeced/pyalgotrade/testcases/technical_vwap_test.py VWAPTestCase.testPeriod2_ClosingPrice/VarMisuse@48/71 `vwap_`->`bars`