本文整理汇总了Python中myLib.miro_app.MiroApp.download_from_a_url方法的典型用法代码示例。如果您正苦于以下问题:Python MiroApp.download_from_a_url方法的具体用法?Python MiroApp.download_from_a_url怎么用?Python MiroApp.download_from_a_url使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类myLib.miro_app.MiroApp
的用法示例。
在下文中一共展示了MiroApp.download_from_a_url方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_444
# 需要导入模块: from myLib.miro_app import MiroApp [as 别名]
# 或者: from myLib.miro_app.MiroApp import download_from_a_url [as 别名]
def test_444(self):
"""http://litmus.pculture.org/show_test.cgi?id=444 external dl errors.
1. http file url to download
2. open with File Download menu
3. Verify download completes
4. Check title display via screenshot
"""
item_url = "http://www.youtube.com/watch?v=LU-ZQWZSGfc&feature=fvhr"
item_title = "watch"
reg = MiroRegions()
miro = MiroApp()
miro.cancel_all_downloads(reg)
dl_status = miro.download_from_a_url(reg, item_url, item_title)
print dl_status
self.assertTrue(dl_status == "failed")
miro.quit_miro()
miro.restart_miro()
miro.click_sidebar_tab(reg, "Downloading")
assert reg.m.exists(Pattern("file_not_found.png"))
reg.m.click(item_title)
type(Key.DELETE)
miro.click_sidebar_tab(reg, "Videos")
reg.s.waitVanish("Downloading")
示例2: test_16456_674
# 需要导入模块: from myLib.miro_app import MiroApp [as 别名]
# 或者: from myLib.miro_app.MiroApp import download_from_a_url [as 别名]
def test_16456_674(self):
"""http://litmus.pculture.org/show_test.cgi?id=674 https url download.
1. http file url to download
2. open with File Download menu
3. Verify download completes
4. Check title display via screenshot
"""
item_url = "https://www.youtube.com/watch?v=pOle1AnPOc4"
item_title = "Charlie"
item_image = "charlie_bit_me.png"
reg = MiroRegions()
miro = MiroApp()
miro.cancel_all_downloads(reg)
miro.download_from_a_url(reg, item_url, item_title)
assert download_playback_check_title(reg, miro, item_title, item_image)
示例3: test_youtube_9
# 需要导入模块: from myLib.miro_app import MiroApp [as 别名]
# 或者: from myLib.miro_app.MiroApp import download_from_a_url [as 别名]
def test_youtube_9(self):
"""http://litmus.pculture.org/show_test.cgi?id=9 external dl youtube.
1. http file url to download
2. open with File Download menu
3. Verify download completes
4. Check title display via screenshot
"""
item_url = "http://www.youtube.com/watch?v=5pB3gAjivrY"
item_title = "Andrew"
item_image = "andrew_garcia_straight_up.png"
reg = MiroRegions()
miro = MiroApp()
miro.cancel_all_downloads(reg)
miro.download_from_a_url(reg, item_url, item_title)
assert download_playback_check_title(reg, miro, item_title, item_image)
示例4: test_9
# 需要导入模块: from myLib.miro_app import MiroApp [as 别名]
# 或者: from myLib.miro_app.MiroApp import download_from_a_url [as 别名]
def test_9(self):
"""http://litmus.pculture.org/show_test.cgi?id=9 external dl.
1. http file url to download
2. open with File Download menu
3. Verify download completes
4. Check title display via screenshot
"""
item_url = "http://j2.video2.blip.tv/7790005512538/Miropcf-TurnASearchIntoAChannel756.mp4"
item_title = "Miropcf"
item_image = "Miropcf_TurnASearch.png"
reg = MiroRegions()
miro = MiroApp()
miro.cancel_all_downloads(reg)
miro.download_from_a_url(reg, item_url, item_title)
assert download_playback_check_title(reg, miro, item_title, item_image)