Exemple #1
0
 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)
Exemple #2
0
 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)
Exemple #3
0
 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)
Exemple #4
0
 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)
Exemple #5
0
        def main(self):
            os.system('cls')
            titles.title()

            book = book+'.txt'
            return book