Ejemplo n.º 1
0
    def test_wiktionary(self):
        w = wiktionary.wiktionary('test')

        assert len(w[1]) > 0
Ejemplo n.º 2
0
    def test_wiktionary_none(self):
        w = wiktionary.wiktionary('Hell!')

        assert len(w[0]) == 0
        assert len(w[1]) == 0
Ejemplo n.º 3
0
    def test_wiktionary(self):
        w = wiktionary.wiktionary(self.phenny, 'test')

        assert len(w[1]) > 0
Ejemplo n.º 4
0
    def test_wiktionary_none(self):
        w = wiktionary.wiktionary(self.phenny, 'Hell!')

        assert len(w[0]) == 0
        assert len(w[1]) == 0
Ejemplo n.º 5
0
    def test_wiktionary(self):
        w = wiktionary.wiktionary('test')

        assert len(w[0]) > 0
        assert len(w[1]) > 0
Ejemplo n.º 6
0
 def test_wiktionary_none(self):
     w = wiktionary.wiktionary(self.phenny, 'Hell!')
     self.assertEqual(len(w[0]), 0)
     self.assertEqual(len(w[1]), 0)
Ejemplo n.º 7
0
 def test_wiktionary(self):
     w = wiktionary.wiktionary(self.phenny, 'test')
     self.assertTrue(len(w[1]) > 0)
Ejemplo n.º 8
0
 def test_wiktionary_none(self):
     w = wiktionary.wiktionary(self.phenny, 'Hell!')
     self.assertEqual(len(w[0]), 0)
     self.assertEqual(len(w[1]), 0)
Ejemplo n.º 9
0
 def test_wiktionary(self):
     w = wiktionary.wiktionary(self.phenny, 'test')
     self.assertTrue(len(w[1]) > 0)