| 118 | print "pattern.it.inflect.verbs.find_lexeme()" |
| 119 | |
| 120 | def test_conjugate(self): |
| 121 | # Assert different tenses with different conjugations. |
| 122 | for (v1, v2, tense) in ( |
| 123 | ("essere", u"essere", it.INFINITIVE), |
| 124 | ("essere", u"sono", (it.PRESENT, 1, it.SINGULAR)), |
| 125 | ("essere", u"sei", (it.PRESENT, 2, it.SINGULAR)), |
| 126 | ("essere", u"è", (it.PRESENT, 3, it.SINGULAR)), |
| 127 | ("essere", u"siamo", (it.PRESENT, 1, it.PLURAL)), |
| 128 | ("essere", u"siete", (it.PRESENT, 2, it.PLURAL)), |
| 129 | ("essere", u"sono", (it.PRESENT, 3, it.PLURAL)), |
| 130 | ("essere", u"essendo", (it.PRESENT + it.PARTICIPLE)), |
| 131 | ("essere", u"stato", (it.PAST + it.PARTICIPLE)), |
| 132 | ("essere", u"ero", (it.IMPERFECT, 1, it.SINGULAR)), |
| 133 | ("essere", u"eri", (it.IMPERFECT, 2, it.SINGULAR)), |
| 134 | ("essere", u"era", (it.IMPERFECT, 3, it.SINGULAR)), |
| 135 | ("essere", u"eravamo", (it.IMPERFECT, 1, it.PLURAL)), |
| 136 | ("essere", u"eravate", (it.IMPERFECT, 2, it.PLURAL)), |
| 137 | ("essere", u"erano", (it.IMPERFECT, 3, it.PLURAL)), |
| 138 | ("essere", u"fui", (it.PRETERITE, 1, it.SINGULAR)), |
| 139 | ("essere", u"fosti", (it.PRETERITE, 2, it.SINGULAR)), |
| 140 | ("essere", u"fu", (it.PRETERITE, 3, it.SINGULAR)), |
| 141 | ("essere", u"fummo", (it.PRETERITE, 1, it.PLURAL)), |
| 142 | ("essere", u"foste", (it.PRETERITE, 2, it.PLURAL)), |
| 143 | ("essere", u"furono", (it.PRETERITE, 3, it.PLURAL)), |
| 144 | ("essere", u"sarei", (it.CONDITIONAL, 1, it.SINGULAR)), |
| 145 | ("essere", u"saresti", (it.CONDITIONAL, 2, it.SINGULAR)), |
| 146 | ("essere", u"sarebbe", (it.CONDITIONAL, 3, it.SINGULAR)), |
| 147 | ("essere", u"saremmo", (it.CONDITIONAL, 1, it.PLURAL)), |
| 148 | ("essere", u"sareste", (it.CONDITIONAL, 2, it.PLURAL)), |
| 149 | ("essere", u"sarebbero", (it.CONDITIONAL, 3, it.PLURAL)), |
| 150 | ("essere", u"sarò", (it.FUTURE, 1, it.SINGULAR)), |
| 151 | ("essere", u"sarai", (it.FUTURE, 2, it.SINGULAR)), |
| 152 | ("essere", u"sarà", (it.FUTURE, 3, it.SINGULAR)), |
| 153 | ("essere", u"saremo", (it.FUTURE, 1, it.PLURAL)), |
| 154 | ("essere", u"sarete", (it.FUTURE, 2, it.PLURAL)), |
| 155 | ("essere", u"saranno", (it.FUTURE, 3, it.PLURAL)), |
| 156 | ("essere", u"sii", (it.PRESENT, 2, it.SINGULAR, it.IMPERATIVE)), |
| 157 | ("essere", u"sia", (it.PRESENT, 3, it.SINGULAR, it.IMPERATIVE)), |
| 158 | ("essere", u"siamo", (it.PRESENT, 1, it.PLURAL, it.IMPERATIVE)), |
| 159 | ("essere", u"siate", (it.PRESENT, 2, it.PLURAL, it.IMPERATIVE)), |
| 160 | ("essere", u"siano", (it.PRESENT, 3, it.PLURAL, it.IMPERATIVE)), |
| 161 | ("essere", u"sia", (it.PRESENT, 1, it.SINGULAR, it.SUBJUNCTIVE)), |
| 162 | ("essere", u"sia", (it.PRESENT, 2, it.SINGULAR, it.SUBJUNCTIVE)), |
| 163 | ("essere", u"sia", (it.PRESENT, 3, it.SINGULAR, it.SUBJUNCTIVE)), |
| 164 | ("essere", u"siamo", (it.PRESENT, 1, it.PLURAL, it.SUBJUNCTIVE)), |
| 165 | ("essere", u"siate", (it.PRESENT, 2, it.PLURAL, it.SUBJUNCTIVE)), |
| 166 | ("essere", u"siano", (it.PRESENT, 3, it.PLURAL, it.SUBJUNCTIVE)), |
| 167 | ("essere", u"fossi", (it.PAST, 1, it.SINGULAR, it.SUBJUNCTIVE)), |
| 168 | ("essere", u"fossi", (it.PAST, 2, it.SINGULAR, it.SUBJUNCTIVE)), |
| 169 | ("essere", u"fosse", (it.PAST, 3, it.SINGULAR, it.SUBJUNCTIVE)), |
| 170 | ("essere", u"fossimo", (it.PAST, 1, it.PLURAL, it.SUBJUNCTIVE)), |
| 171 | ("essere", u"foste", (it.PAST, 2, it.PLURAL, it.SUBJUNCTIVE)), |
| 172 | ("essere", u"fossero", (it.PAST, 3, it.PLURAL, it.SUBJUNCTIVE))): |
| 173 | self.assertEqual(it.conjugate(v1, tense), v2) |
| 174 | print "pattern.it.conjugate()" |
| 175 | |
| 176 | def test_lexeme(self): |
| 177 | # Assert all inflections of "essere". |