def test_69(self): """http://litmus.pculture.org/show_test.cgi?id=69 Add rss feed via browser. 1. Add feed The AV Club via the browser (assumes the browser is set to automatically add the feed). 2. Verify the feed is added 3. Cleanup Assumes that Miro is configured as the default application to open rss feeds in FF. """ try: reg = mirolib.AppRegions() feed = "The AV" prefs.set_autodownload(self,reg,setting="Off") url = "http://feeds.feedburner.com/theavclub/mainline" mirolib.browser_to_miro(self,reg,url) #3. verify feed added mirolib.click_podcast(self,reg,feed) finally: #cleanup mirolib.delete_feed(self,reg,feed)
def test_719(self): """http://litmus.pculture.org/show_test.cgi?id=719 external torrent dl from browser 1. clearbits torrent dl 2. open with browser 3. Verify download started and metadata 4. Cleanup """ reg = mirolib.AppRegions() url = "http://www.clearbits.net/get/993-wurlitztraction---lucidity-cue.torrent" item_title = "Enough" mirolib.browser_to_miro(self,reg,url) print ("confirm download started") status = mirolib.confirm_download_started(self,reg,item_title) print status if status == "downloaded": mirolib.delete_items(self,reg,item_title,"Misc") elif status == "in_progress": mirolib.delete_items(self,reg,item_title,"Downloading") else: self.fail("Can not confirm download started")