def test_selected(self): """ Get selected title """ t = titles.title() p = wptools.page(t['title'], lang=t['lang']).get_query(False) self.assertTrue(p.pageid is not None)
def test_get_rest(self): ''' Get random RESTBase ''' t = titles.title() r = wptools.page(t['title'], lang=t['lang']) r.get_rest() self.assertTrue(r.lead is not None)
def main(self): os.system('cls') titles.title() book = book+'.txt' return book