本文整理汇总了Python中pages.desktop.addons_api.AddonsAPI.get_list_of_addon_author_names方法的典型用法代码示例。如果您正苦于以下问题:Python AddonsAPI.get_list_of_addon_author_names方法的具体用法?Python AddonsAPI.get_list_of_addon_author_names怎么用?Python AddonsAPI.get_list_of_addon_author_names使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pages.desktop.addons_api.AddonsAPI
的用法示例。
在下文中一共展示了AddonsAPI.get_list_of_addon_author_names方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_that_firebug_authors_is_correct
# 需要导入模块: from pages.desktop.addons_api import AddonsAPI [as 别名]
# 或者: from pages.desktop.addons_api.AddonsAPI import get_list_of_addon_author_names [as 别名]
def test_that_firebug_authors_is_correct(self, base_url, selenium):
# get authors from browser
firebug_page = Details(base_url, selenium, self.firebug)
browser_authors = firebug_page.authors
# get authors from xml
addons_xml = AddonsAPI(base_url, self.firebug)
xml_authors = addons_xml.get_list_of_addon_author_names()
# check that both lists have the same number of authors
assert len(browser_authors) == len(xml_authors)
# cross check both lists with each other
for i in range(len(xml_authors)):
assert xml_authors[i] == browser_authors[i]
示例2: test_that_firebug_authors_is_correct
# 需要导入模块: from pages.desktop.addons_api import AddonsAPI [as 别名]
# 或者: from pages.desktop.addons_api.AddonsAPI import get_list_of_addon_author_names [as 别名]
def test_that_firebug_authors_is_correct(self, mozwebqa):
# get authors from browser
firebug_page = Details(mozwebqa, self.firebug)
browser_authors = firebug_page.authors
# get authors from xml
addons_xml = AddonsAPI(mozwebqa, self.firebug)
xml_authors = addons_xml.get_list_of_addon_author_names()
# check that both lists have the same number of authors
Assert.equal(len(browser_authors), len(xml_authors))
# cross check both lists with each other
for i in range(len(xml_authors)):
Assert.equal(xml_authors[i], browser_authors[i])