| 52 | print "pattern.fr.inflect.verbs.find_lexeme()" |
| 53 | |
| 54 | def test_conjugate(self): |
| 55 | # Assert different tenses with different conjugations. |
| 56 | for (v1, v2, tense) in ( |
| 57 | (u"être", u"être", fr.INFINITIVE), |
| 58 | (u"être", u"suis", (fr.PRESENT, 1, fr.SINGULAR)), |
| 59 | (u"être", u"es", (fr.PRESENT, 2, fr.SINGULAR)), |
| 60 | (u"être", u"est", (fr.PRESENT, 3, fr.SINGULAR)), |
| 61 | (u"être", u"sommes", (fr.PRESENT, 1, fr.PLURAL)), |
| 62 | (u"être", u"êtes", (fr.PRESENT, 2, fr.PLURAL)), |
| 63 | (u"être", u"sont", (fr.PRESENT, 3, fr.PLURAL)), |
| 64 | (u"être", u"étant", (fr.PRESENT + fr.PARTICIPLE)), |
| 65 | (u"être", u"été", (fr.PAST + fr.PARTICIPLE)), |
| 66 | (u"être", u"étais", (fr.IMPERFECT, 1, fr.SINGULAR)), |
| 67 | (u"être", u"étais", (fr.IMPERFECT, 2, fr.SINGULAR)), |
| 68 | (u"être", u"était", (fr.IMPERFECT, 3, fr.SINGULAR)), |
| 69 | (u"être", u"étions", (fr.IMPERFECT, 1, fr.PLURAL)), |
| 70 | (u"être", u"étiez", (fr.IMPERFECT, 2, fr.PLURAL)), |
| 71 | (u"être", u"étaient", (fr.IMPERFECT, 3, fr.PLURAL)), |
| 72 | (u"être", u"fus", (fr.PRETERITE, 1, fr.SINGULAR)), |
| 73 | (u"être", u"fus", (fr.PRETERITE, 2, fr.SINGULAR)), |
| 74 | (u"être", u"fut", (fr.PRETERITE, 3, fr.SINGULAR)), |
| 75 | (u"être", u"fûmes", (fr.PRETERITE, 1, fr.PLURAL)), |
| 76 | (u"être", u"fûtes", (fr.PRETERITE, 2, fr.PLURAL)), |
| 77 | (u"être", u"furent", (fr.PRETERITE, 3, fr.PLURAL)), |
| 78 | (u"être", u"serais", (fr.CONDITIONAL, 1, fr.SINGULAR)), |
| 79 | (u"être", u"serais", (fr.CONDITIONAL, 2, fr.SINGULAR)), |
| 80 | (u"être", u"serait", (fr.CONDITIONAL, 3, fr.SINGULAR)), |
| 81 | (u"être", u"serions", (fr.CONDITIONAL, 1, fr.PLURAL)), |
| 82 | (u"être", u"seriez", (fr.CONDITIONAL, 2, fr.PLURAL)), |
| 83 | (u"être", u"seraient", (fr.CONDITIONAL, 3, fr.PLURAL)), |
| 84 | (u"être", u"serai", (fr.FUTURE, 1, fr.SINGULAR)), |
| 85 | (u"être", u"seras", (fr.FUTURE, 2, fr.SINGULAR)), |
| 86 | (u"être", u"sera", (fr.FUTURE, 3, fr.SINGULAR)), |
| 87 | (u"être", u"serons", (fr.FUTURE, 1, fr.PLURAL)), |
| 88 | (u"être", u"serez", (fr.FUTURE, 2, fr.PLURAL)), |
| 89 | (u"être", u"seront", (fr.FUTURE, 3, fr.PLURAL)), |
| 90 | (u"être", u"sois", (fr.PRESENT, 2, fr.SINGULAR, fr.IMPERATIVE)), |
| 91 | (u"être", u"soyons", (fr.PRESENT, 1, fr.PLURAL, fr.IMPERATIVE)), |
| 92 | (u"être", u"soyez", (fr.PRESENT, 2, fr.PLURAL, fr.IMPERATIVE)), |
| 93 | (u"être", u"sois", (fr.PRESENT, 1, fr.SINGULAR, fr.SUBJUNCTIVE)), |
| 94 | (u"être", u"sois", (fr.PRESENT, 2, fr.SINGULAR, fr.SUBJUNCTIVE)), |
| 95 | (u"être", u"soit", (fr.PRESENT, 3, fr.SINGULAR, fr.SUBJUNCTIVE)), |
| 96 | (u"être", u"soyons", (fr.PRESENT, 1, fr.PLURAL, fr.SUBJUNCTIVE)), |
| 97 | (u"être", u"soyez", (fr.PRESENT, 2, fr.PLURAL, fr.SUBJUNCTIVE)), |
| 98 | (u"être", u"soient", (fr.PRESENT, 3, fr.PLURAL, fr.SUBJUNCTIVE)), |
| 99 | (u"être", u"fusse", (fr.PAST, 1, fr.SINGULAR, fr.SUBJUNCTIVE)), |
| 100 | (u"être", u"fusses", (fr.PAST, 2, fr.SINGULAR, fr.SUBJUNCTIVE)), |
| 101 | (u"être", u"fût", (fr.PAST, 3, fr.SINGULAR, fr.SUBJUNCTIVE)), |
| 102 | (u"être", u"fussions", (fr.PAST, 1, fr.PLURAL, fr.SUBJUNCTIVE)), |
| 103 | (u"être", u"fussiez", (fr.PAST, 2, fr.PLURAL, fr.SUBJUNCTIVE)), |
| 104 | (u"être", u"fussent", (fr.PAST, 3, fr.PLURAL, fr.SUBJUNCTIVE))): |
| 105 | self.assertEqual(fr.conjugate(v1, tense), v2) |
| 106 | print "pattern.fr.conjugate()" |
| 107 | |
| 108 | def test_lexeme(self): |
| 109 | # Assert all inflections of "être". |