本文整理汇总了Python中mygengo.MyGengo.getGlossaryList方法的典型用法代码示例。如果您正苦于以下问题:Python MyGengo.getGlossaryList方法的具体用法?Python MyGengo.getGlossaryList怎么用?Python MyGengo.getGlossaryList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类mygengo.MyGengo
的用法示例。
在下文中一共展示了MyGengo.getGlossaryList方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: TestGlossaryFunctions
# 需要导入模块: from mygengo import MyGengo [as 别名]
# 或者: from mygengo.MyGengo import getGlossaryList [as 别名]
class TestGlossaryFunctions(unittest.TestCase):
"""
"""
def setUp(self):
"""
Creates the initial batch of jobs for the other test functions here to operate on.
"""
# First we'll create three jobs - one regular, and two at the same time...
self.myGengo = MyGengo(public_key = public_key,
private_key = private_key, sandbox = SANDBOX)
def test_getGlossaryList( self ):
resp = self.myGengo.getGlossaryList()
self.assertEqual(resp['opstat'], 'ok')
@unittest.skip("unless you created a glossary on the site (not yet supported via the API) this test does not make a lot of sense.")
def test_getGlossary( self ):
resp = self.myGengo.getGlossary( id = 42 )