Пример #1
0
    def test_wiktionary(self):
        w = wiktionary.wiktionary('test')

        assert len(w[1]) > 0
Пример #2
0
    def test_wiktionary_none(self):
        w = wiktionary.wiktionary('Hell!')

        assert len(w[0]) == 0
        assert len(w[1]) == 0
Пример #3
0
    def test_wiktionary(self):
        w = wiktionary.wiktionary(self.phenny, 'test')

        assert len(w[1]) > 0
Пример #4
0
    def test_wiktionary_none(self):
        w = wiktionary.wiktionary(self.phenny, 'Hell!')

        assert len(w[0]) == 0
        assert len(w[1]) == 0
Пример #5
0
    def test_wiktionary(self):
        w = wiktionary.wiktionary('test')

        assert len(w[0]) > 0
        assert len(w[1]) > 0
Пример #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)
Пример #7
0
 def test_wiktionary(self):
     w = wiktionary.wiktionary(self.phenny, 'test')
     self.assertTrue(len(w[1]) > 0)
Пример #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)
Пример #9
0
 def test_wiktionary(self):
     w = wiktionary.wiktionary(self.phenny, 'test')
     self.assertTrue(len(w[1]) > 0)