Esempio n. 1
0
 def test_esta_en_wiktionary_consulta_palabra_comun(self):
     texto = "hola"
     self.assertTrue(Wiktionary.pertenece_consulta(texto), "Debería estar en wiktionary el texto \"" + texto + "\"")
Esempio n. 2
0
 def test_esta_en_wiktionary_consulta_palabra_inexistente(self):
     texto = "jajajajaaaaaaaa"
     self.assertFalse(Wiktionary.pertenece_consulta(texto), "No debería estar en wiktionary el texto \"" + texto
                      + "\"")
Esempio n. 3
0
 def test_esta_en_wiktionary_consulta_palabra_inexistente2(self):
     texto = "aldnkvnvrbyweruvnrhuvhuirbv"
     self.assertFalse(Wiktionary.pertenece_consulta(texto), "No debería estar en wiktionary el texto \"" + texto
                      + "\"")
Esempio n. 4
0
 def test_esta_en_wiktionary_consulta_error_de_tipeo(self):
     texto = "holaa"
     self.assertFalse(Wiktionary.pertenece_consulta(texto), "No debería estar en wiktionary el texto \"" + texto
                      + "\"")