本文整理汇总了Python中API.getDatasetDownload方法的典型用法代码示例。如果您正苦于以下问题:Python API.getDatasetDownload方法的具体用法?Python API.getDatasetDownload怎么用?Python API.getDatasetDownload使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类API
的用法示例。
在下文中一共展示了API.getDatasetDownload方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_getDatasetDownload14
# 需要导入模块: import API [as 别名]
# 或者: from API import getDatasetDownload [as 别名]
def test_getDatasetDownload14(self):
a = API.getDatasetDownload([1, 2, 3, 4])
i = 0
while i < len(a.items):
b = a.items[i]
self.assertIsInstance(b, classes.DatasetDownload) ##make sure all items in list are download
i += 1
示例2: test_getDatasetDownload13
# 需要导入模块: import API [as 别名]
# 或者: from API import getDatasetDownload [as 别名]
def test_getDatasetDownload13(self):
self.assertIsInstance(API.getDatasetDownload(1).items[0], classes.DatasetDownload)
示例3: test_getDatasetDownload11
# 需要导入模块: import API [as 别名]
# 或者: from API import getDatasetDownload [as 别名]
def test_getDatasetDownload11(self):
ds = API.getDatasetDownload(6000).items[0]
did = str(ds.datasetID)
self.assertTrue(did.isdigit())
示例4: test_getDatasetDownload12
# 需要导入模块: import API [as 别名]
# 或者: from API import getDatasetDownload [as 别名]
def test_getDatasetDownload12(self):
dc = API.getDatasetDownload(17387) ##collection
ds = dc.items[0] ##individual dataset
chronID = ds.defChronologyID
self.assertEqual(chronID, 9726)
示例5: test_getDownload8
# 需要导入模块: import API [as 别名]
# 或者: from API import getDatasetDownload [as 别名]
def test_getDownload8(self):
##need to implement isNumeric here
ds = API.getDatasetDownload(3031).items[0]
chronID = str(ds.defChronologyID) ## make string so we can use the isdigit method
self.assertTrue(chronID.isdigit())
示例6: test_getDownload10
# 需要导入模块: import API [as 别名]
# 或者: from API import getDatasetDownload [as 别名]
def test_getDownload10(self):
ds = API.getDatasetDownload(6000).items[0]
chronID = str(ds.defChronologyID) ## make string so we can use the isdigit method
self.assertTrue(chronID.isdigit())
示例7: test_getDownload6
# 需要导入模块: import API [as 别名]
# 或者: from API import getDatasetDownload [as 别名]
def test_getDownload6(self):
self.assertEqual(len(API.getDatasetDownload((1, 2, 3)).items), 3)
示例8: test_getDownload7
# 需要导入模块: import API [as 别名]
# 或者: from API import getDatasetDownload [as 别名]
def test_getDownload7(self):
self.assertIsInstance(API.getDatasetDownload(1), classes.DatasetCollection)
示例9: test_getDownload5
# 需要导入模块: import API [as 别名]
# 或者: from API import getDatasetDownload [as 别名]
def test_getDownload5(self):
self.assertEqual(len(API.getDatasetDownload([1, 2]).items), 2)
示例10: test_getDownload4
# 需要导入模块: import API [as 别名]
# 或者: from API import getDatasetDownload [as 别名]
def test_getDownload4(self):
self.assertEqual(len(API.getDatasetDownload(1).items), 1)
示例11: test_getDownload3
# 需要导入模块: import API [as 别名]
# 或者: from API import getDatasetDownload [as 别名]
def test_getDownload3(self):
self.assertTrue(API.getDatasetDownload(1))
示例12: test_getDownload2
# 需要导入模块: import API [as 别名]
# 或者: from API import getDatasetDownload [as 别名]
def test_getDownload2(self):
self.assertFalse(API.getDatasetDownload(["a", "b"]))
示例13: test_getDownload1
# 需要导入模块: import API [as 别名]
# 或者: from API import getDatasetDownload [as 别名]
def test_getDownload1(self):
self.assertFalse(API.getDatasetDownload("a"))