TST: tests removing of expired data and removes ffill in DataPanelSource

This commit is contained in:
warren-oneill
2015-11-17 17:22:31 +01:00
parent abbda17239
commit 987d6d4e48
5 changed files with 68 additions and 6 deletions
+10
View File
@@ -937,6 +937,16 @@ class InvalidOrderAlgorithm(TradingAlgorithm):
style=style)
class TestRemoveDataAlgo(TradingAlgorithm):
def initialize(self, *args, **kwargs):
self.data = np.zeros(6)
self.i = 0
def handle_data(self, data):
self.data[self.i] = len(data)
self.i += 1
##############################
# Quantopian style algorithms