ENH: Added new kwarg to batch_transform: create_panel.

This commit is contained in:
Thomas Wiecki
2013-01-16 10:30:37 -05:00
parent a63d4bca28
commit 52b099f6db
3 changed files with 30 additions and 4 deletions
+5
View File
@@ -13,6 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from collections import deque
import pytz
import numpy as np
import pandas as pd
@@ -354,6 +356,9 @@ class TestBatchTransform(TestCase):
self.assertIn('price', data.items)
self.assertIn('ignore', data.items)
for data in algo.history_return_ticks[wl:]:
self.assertTrue(isinstance(data, deque))
# test overloaded class
for test_history in [algo.history_return_price_class,
algo.history_return_price_decorator]: