本文整理汇总了Python中myLib.miro_app.MiroApp.download_all_items方法的典型用法代码示例。如果您正苦于以下问题:Python MiroApp.download_all_items方法的具体用法?Python MiroApp.download_all_items怎么用?Python MiroApp.download_all_items使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类myLib.miro_app.MiroApp
的用法示例。
在下文中一共展示了MiroApp.download_all_items方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_338
# 需要导入模块: from myLib.miro_app import MiroApp [as 别名]
# 或者: from myLib.miro_app.MiroApp import download_all_items [as 别名]
def test_338(self):
"""http://litmus.pculture.org/show_test.cgi?id=338 delete feed with dl items.
Litmus Test Title:: 338 - channels delete a feed with downloads in progress
Description:
1. Add the 3-blip-videos feed. Start items downloading
2. Remove the feed and verify downloads are removed.
"""
#set the search regions
reg = MiroRegions()
miro = MiroApp()
url = "http://pculture.org/feeds_test/3blipvideos.xml"
feed = "ThreeBlip"
#1. Add the feed and start dl
miro.cancel_all_downloads(reg)
miro.add_feed(reg, url,feed)
miro.download_all_items(reg)
time.sleep(2)
miro.confirm_download_started(reg, "The Joo")
miro.delete_feed(reg, feed)
time.sleep(5)
if reg.s.exists("Downloading",5):
self.fail("Downloading tab still present")
示例2: test_18453_764
# 需要导入模块: from myLib.miro_app import MiroApp [as 别名]
# 或者: from myLib.miro_app.MiroApp import download_all_items [as 别名]
def test_18453_764(self):
"""http://litmus.pculture.org/show_test.cgi?id=764 vimeo likes feed dl.
1. Add feed
2. Download item
3. Verify download completes
4. Check title display via screenshot
5. Verify playback
"""
feed_url = "http://vimeo.com/habi/likes/rss"
feed_name = "David"
item_title = "glove"
item_image = "vimeo-glove.png"
reg = MiroRegions()
miro = MiroApp()
miro.add_feed(reg, feed_url, feed_name)
miro.tab_search(reg, item_title)
miro.download_all_items(reg)
assert download_playback_check_title(reg, miro, item_title, item_image)
miro.delete_feed(reg, feed_name)
示例3: test_14289_644
# 需要导入模块: from myLib.miro_app import MiroApp [as 别名]
# 或者: from myLib.miro_app.MiroApp import download_all_items [as 别名]
def test_14289_644(self):
"""http://litmus.pculture.org/show_test.cgi?id=644 feed items with non-ascii chars.
1. Add feed
2. Download item
3. Verify download completes
4. Check title display via screenshot
5. Verify playback
"""
url_path = os.path.join(os.getenv("PCF_TEST_HOME"),"Miro","TestData","dilbert-feed.xml")
feed_url = "http://gdata.youtube.com/feeds/api/users/4001v63/uploads"
feed_name = "Uploads"
item_title = "kerta"
item_image = "non_ascii_item.png"
reg = MiroRegions()
miro = MiroApp()
miro.add_feed(reg, feed_url, feed_name)
miro.tab_search(reg, item_title)
miro.download_all_items(reg)
assert download_playback_check_title(reg, miro, item_title, item_image)
miro.delete_feed(reg, feed_name)
示例4: test_18656_765
# 需要导入模块: from myLib.miro_app import MiroApp [as 别名]
# 或者: from myLib.miro_app.MiroApp import download_all_items [as 别名]
def test_18656_765(self):
"""http://litmus.pculture.org/show_test.cgi?id=764 itunes feed dl.
1. Add feed
2. Download item
3. Verify download completes
4. Check title display via screenshot
5. Verify playback
"""
url_path = os.path.join(os.getenv("PCF_TEST_HOME"),"Miro","TestData","dilbert-feed.xml")
feed_url = "file:///"+url_path
feed_name = "Dilbert"
item_title = "Survey"
item_image = "dilbert_survey_results.png"
reg = MiroRegions()
miro = MiroApp()
miro.add_feed(reg, feed_url, feed_name)
miro.tab_search(reg, item_title)
miro.download_all_items(reg)
assert download_playback_check_title(reg, miro, item_title, item_image)
miro.delete_feed(reg, feed_name)
示例5: test_18656_764
# 需要导入模块: from myLib.miro_app import MiroApp [as 别名]
# 或者: from myLib.miro_app.MiroApp import download_all_items [as 别名]
def test_18656_764(self):
"""http://litmus.pculture.org/show_test.cgi?id=764 vimeo feed dl.
1. Add feed
2. Download item
3. Verify download completes
4. Check title display via screenshot
5. Verify playback
"""
url_path = os.path.join(os.getenv("PCF_TEST_HOME"),"Miro","TestData","vimeo-feed")
feed_url = "file:///"+url_path
feed_name = "ONE DAY"
item_title = "Jellyfish"
item_image = "vimeo-jellyfish.png"
reg = MiroRegions()
miro = MiroApp()
miro.add_feed(reg, feed_url, feed_name)
miro.tab_search(reg, item_title)
miro.download_all_items(reg)
assert download_playback_check_title(reg, miro, item_title, item_image)
miro.delete_feed(reg, feed_name)
示例6: test_18656_763
# 需要导入模块: from myLib.miro_app import MiroApp [as 别名]
# 或者: from myLib.miro_app.MiroApp import download_all_items [as 别名]
def test_18656_763(self):
"""http://litmus.pculture.org/show_test.cgi?id=763 youtube feed dl.
1. Add feed
2. Download item
3. Verify download completes
4. Check title display via screenshot
5. Verify playback
"""
url_path = os.path.join(os.getenv("PCF_TEST_HOME"),"Miro","TestData","youtube-feed.rss")
feed_url = "file:///"+url_path
feed_name = "AL JAZEERA"
item_title = "Alarm"
item_image = "youtube_alarm_spreads.png"
reg = MiroRegions()
miro = MiroApp()
miro.add_feed(reg, feed_url, feed_name)
miro.tab_search(reg, item_title)
miro.download_all_items(reg)
assert download_playback_check_title(reg, miro, item_title, item_image)
miro.delete_feed(reg, feed_name)