本文整理汇总了Python中myLib.miro_app.MiroApp.open_podcast_settings方法的典型用法代码示例。如果您正苦于以下问题:Python MiroApp.open_podcast_settings方法的具体用法?Python MiroApp.open_podcast_settings怎么用?Python MiroApp.open_podcast_settings使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类myLib.miro_app.MiroApp
的用法示例。
在下文中一共展示了MiroApp.open_podcast_settings方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_138
# 需要导入模块: from myLib.miro_app import MiroApp [as 别名]
# 或者: from myLib.miro_app.MiroApp import open_podcast_settings [as 别名]
def test_138(self): #shortened as there no more feed counter and can't count too much stuff.
"""http://litmus.pculture.org/show_test.cgi?id=138 clear out old items.
Litmus Test Title:: 138 Channels - clear out old items
Description:
1. Add a feed that adds five new items each time it's updated.
2. Update the feed to add new items.
3. Modify old items settings to verify items cleared.
4. Cleanup
"""
#set the search regions
reg = MiroRegions()
miro = MiroApp()
url = "http://bluesock.org/~willg/cgi-bin/newitemsfeed.cgi"
feed = "my feed"
miro.add_feed(reg, url,feed)
miro.get_podcasts_region(reg)
miro.tab_search(reg, "my feed")
miro.toggle_list(reg)
miro.count_images(reg, img="my feed",region="list",num_expected=5)
miro.click_podcast(reg, feed)
miro.shortcut("r")
time.sleep(10)
miro.get_podcasts_region(reg)
if miro.count_images(reg, img="my feed",region="list",num_expected=10) == 10:
miro.log_result("99","test_92") #verifies update podcast shortcut
miro.click_podcast(reg, feed)
for x in range(0,3):
miro.shortcut("r")
time.sleep(3)
miro.open_podcast_settings(reg)
miro.change_podcast_settings(reg, option="Podcast Items",setting="Keep 0")
time.sleep(2)
miro.get_podcasts_region(reg)
miro.count_images(reg, img="my feed",region="list",num_expected=5)
#4. cleanup
miro.delete_feed(reg, "my feed")