def test_get_meanings(self): self.failUnlessEqual(len(list(get_meanings('we'))), 4) self.failUnlessEqual(len(list(get_meanings('we', 'pronoun'))), 3) self.failUnlessEqual(len(self.all_pronouns_meanings_we), 3) self.failUnlessEqual(len(self.all_noun_meanings_we), 0) self.failUnlessEqual(len(list(get_meanings())), 5) self.failUnlessEqual(len(list(get_meanings('wEer'))), 1) self.failUnlessEqual(len(list(get_meanings('wEerw'))), 0)
def test_get_meanings(self): self.failUnlessEqual(len(list(get_meanings("we"))), 4) self.failUnlessEqual(len(list(get_meanings("we", "pronoun"))), 3) self.failUnlessEqual(len(self.all_pronouns_meanings_we), 3) self.failUnlessEqual(len(self.all_noun_meanings_we), 0) self.failUnlessEqual(len(list(get_meanings())), 5) self.failUnlessEqual(len(list(get_meanings("wEer"))), 1) self.failUnlessEqual(len(list(get_meanings("wEerw"))), 0)
def setUp(self): self.all_pronouns_meanings_we = filter( lambda part: part[0] == 'Pronoun', get_meanings('we', 'pronoun')) self.all_noun_meanings_we = filter(lambda part: part[0] == 'Noun', get_meanings('we', 'pronoun'))
def setUp(self): self.all_pronouns_meanings_we = filter(lambda part: part[0] == "Pronoun", get_meanings("we", "pronoun")) self.all_noun_meanings_we = filter(lambda part: part[0] == "Noun", get_meanings("we", "pronoun"))