def test_24(self): """http://litmus.pculture.org/show_test.cgi?id=24 edit remembered search. 1. Add 2-stupid-videos feed 2. Perform a search 3. Type in search box the delete key 4. Cleanup """ reg = mirolib.AppRegions() url = "http://pculture.org/feeds_test/2stupidvideos.xml" feed = "TwoStupid" term = "Face" title = "Flip" #1. add feed mirolib.add_feed(self,reg,url,feed) mirolib.set_podcast_autodownload(self,reg,setting="All") #2. search mirolib.tab_search(self,reg,term) self.assertTrue(reg.m.exists(title)) url2 = "http://pculture.org/feeds_test/list-of-guide-feeds.xml" feed2 = "Static" term2 = "FilmWeek" mirolib.add_feed(self,reg,url2,feed2) mirolib.tab_search(self,reg,"Brooklyn") mirolib.wait_for_item_in_tab(self,reg,"Videos",title) reg.m.click(title) type(Key.ENTER) time.sleep(2) type(" ") self.assertTrue(exists(Pattern("playback_controls.png"))) mirolib.shortcut("d") reg.s.click(feed2) self.assertTrue(reg.mtb.exists("BROOKLYN")) mirolib.tab_search(self,reg,term2) reg.mtb.click("button_save_as_podcast.png") mirolib.click_last_podcast(self,reg) mirolib.tab_search(self,reg,term2,confirm_present=True) mirolib.clear_search(reg) if reg.mtb.exists(term2.upper()): mirolib.log_result("324","test_24",status="fail") else: mirolib.log_result("324","test_24") #4. cleanup mirolib.delete_feed(self,reg,"stupid") mirolib.click_last_podcast(self,reg) mirolib.delete_current_selection(self,reg) mirolib.delete_feed(self,reg,"Static List")
def _delete_playlist(self): mirolib.shortcut("p") if reg.m.exists("Enter a",3): mirolib.log_result("723","test_92") time.sleep(4) type("FaveList"+"\n") p = mirolib.get_playlists_region(reg) p.click("FaveList",2) time.sleep(2) mirolib.delete_current_selection(self,reg) time.sleep(2) self.assertFalse(p.exists("FaveList",3)) mirolib.log_result("92","delte playlist shortcut verified")
def _delete_playlist_folder(self): mirolib.shortcut("p",shift=True) time.sleep(4) if reg.m.exists("playlist folder",3): mirolib.log_result("724","test_92") type("SUPERPLAYS"+"\n") time.sleep(3) p = mirolib.get_playlists_region(reg) p.click("SUPERPLAYS") time.sleep(2) mirolib.delete_current_selection(self,reg) time.sleep(2) self.assertFalse(p.exists("SUPERPLAYS",3)) mirolib.log_result("92","delte playlist folder shortcut verified")