本文整理汇总了Python中pyral.Rally.getSchemaInfo方法的典型用法代码示例。如果您正苦于以下问题:Python Rally.getSchemaInfo方法的具体用法?Python Rally.getSchemaInfo怎么用?Python Rally.getSchemaInfo使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pyral.Rally
的用法示例。
在下文中一共展示了Rally.getSchemaInfo方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_getSchemaInfo
# 需要导入模块: from pyral import Rally [as 别名]
# 或者: from pyral.Rally import getSchemaInfo [as 别名]
def test_getSchemaInfo():
"""
Using a known valid Rally server and known valid access credentials,
obtain a Rally instance and call the getSchemaInfo method for the
default workspace.
"""
rally = Rally(server=TRIAL, user=TRIAL_USER, password=TRIAL_PSWD)
schema_info = rally.getSchemaInfo(rally.getWorkspace())
assert type(schema_info) == list
assert len(schema_info) > 50
subs_schema = [item for item in schema_info if item['Name'] == 'Subscription']
assert subs_schema != None
assert len(subs_schema) == 1
assert type(subs_schema) == list
assert u'Attributes' in subs_schema[0]
assert len(subs_schema[0][u'Attributes']) > 15