Merge pull request #1667 from quantopian/pricing-fixture-cleanups

Pricing fixture cleanups
This commit is contained in:
Scott Sanderson
2017-01-31 10:32:17 -05:00
committed by GitHub
5 changed files with 71 additions and 21 deletions
+8
View File
@@ -670,6 +670,14 @@ class ExchangeCalendarTestBase(object):
found_open, found_close = \
self.calendar.open_and_close_for_session(session_label)
# Test that the methods for just session open and close produce the
# same values as the method for getting both.
alt_open = self.calendar.session_open(session_label)
self.assertEqual(alt_open, found_open)
alt_close = self.calendar.session_close(session_label)
self.assertEqual(alt_close, found_close)
self.assertEqual(open_answer, found_open)
self.assertEqual(close_answer, found_close)