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
+6 -3
View File
@@ -123,9 +123,12 @@ class TestDataFrameSource(TestCase):
self.assertEqual(5, event.sid)
event = next(source)
self.assertEqual(4, event.sid)
event = next(source)
self.assertEqual(5, event.sid)
self.assertFalse(np.isnan(event.price))
try:
x = False
event = next(source)
except StopIteration:
x = True
self.assertTrue(x)
class TestRandomWalkSource(TestCase):