本文整理匯總了Python中pyuploadcare.api_resources.FileGroup._info_cache方法的典型用法代碼示例。如果您正苦於以下問題:Python FileGroup._info_cache方法的具體用法?Python FileGroup._info_cache怎麽用?Python FileGroup._info_cache使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類pyuploadcare.api_resources.FileGroup
的用法示例。
在下文中一共展示了FileGroup._info_cache方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: test_successful_store
# 需要導入模塊: from pyuploadcare.api_resources import FileGroup [as 別名]
# 或者: from pyuploadcare.api_resources.FileGroup import _info_cache [as 別名]
def test_successful_store(self, request):
group = FileGroup(cdn_url_or_group_id="0513dda0-582f-447d-846f-096e5df9e2bb~2")
group._info_cache = {"datetime_stored": None}
# PUT /api/groups/{group_id}/storage/
request.return_value = MockResponse(status=200, data=b'{"datetime_stored": "2013-04-03T12:01:28.714Z"}')
group.store()
self.assertEqual(request.call_count, 1)