本文整理匯總了Python中arctic.tickstore.toplevel.TopLevelTickStore._get_library_metadata方法的典型用法代碼示例。如果您正苦於以下問題:Python TopLevelTickStore._get_library_metadata方法的具體用法?Python TopLevelTickStore._get_library_metadata怎麽用?Python TopLevelTickStore._get_library_metadata使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類arctic.tickstore.toplevel.TopLevelTickStore
的用法示例。
在下文中一共展示了TopLevelTickStore._get_library_metadata方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: test_raise_exception_if_date_range_does_not_contain_start_and_end_date
# 需要導入模塊: from arctic.tickstore.toplevel import TopLevelTickStore [as 別名]
# 或者: from arctic.tickstore.toplevel.TopLevelTickStore import _get_library_metadata [as 別名]
def test_raise_exception_if_date_range_does_not_contain_start_and_end_date():
store = TopLevelTickStore(Mock())
dr = DateRange(start=None, end=None)
with pytest.raises(Exception) as e:
store._get_library_metadata(dr)
assert "The date range {0} must contain a start and end date".format(dr) in str(e)
示例2: test_raise_exception_if_daterange_is_not_provided
# 需要導入模塊: from arctic.tickstore.toplevel import TopLevelTickStore [as 別名]
# 或者: from arctic.tickstore.toplevel.TopLevelTickStore import _get_library_metadata [as 別名]
def test_raise_exception_if_daterange_is_not_provided():
store = TopLevelTickStore(Mock())
with pytest.raises(Exception) as e:
store._get_library_metadata(None)
assert "A date range must be provided" in str(e)