示例#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)