

def testPeriod50_ClosingPrice(self):
    barFeed = self.__getFeed()
    bars = barFeed[VWAPTestCase.Instrument]
    vwap_ = vwap.VWAP(bars, 50)
    barFeed.loadAll()
    for i in xrange(49):
        self.assertEqual(vwap_[i], None)
    for i in xrange(49, len(vwap_)):
        self.assertNotEqual(vwap_[i], None)

dataset/ETHPy150Open gbeced/pyalgotrade/testcases/technical_vwap_test.py VWAPTestCase.testPeriod50_ClosingPrice/original