def test_conjugate(self): # Assert different tenses with different conjugations. for (v1, v2, tense) in ( ("essere", u"essere", it.INFINITIVE), ("essere", u"sono", (it.PRESENT, 1, it.SINGULAR)), ("essere", u"sei", (it.PRESENT, 2, it.SINGULAR)), ("essere", u"è", (it.PRESENT, 3, it.SINGULAR)), ("essere", u"siamo", (it.PRESENT, 1, it.PLURAL)), ("essere", u"siete", (it.PRESENT, 2, it.PLURAL)), ("essere", u"sono", (it.PRESENT, 3, it.PLURAL)), ("essere", u"essendo", (it.PRESENT + it.PARTICIPLE)), ("essere", u"stato", (it.PAST + it.PARTICIPLE)), ("essere", u"ero", (it.IMPERFECT, 1, it.SINGULAR)), ("essere", u"eri", (it.IMPERFECT, 2, it.SINGULAR)), ("essere", u"era", (it.IMPERFECT, 3, it.SINGULAR)), ("essere", u"eravamo", (it.IMPERFECT, 1, it.PLURAL)), ("essere", u"eravate", (it.IMPERFECT, 2, it.PLURAL)), ("essere", u"erano", (it.IMPERFECT, 3, it.PLURAL)), ("essere", u"fui", (it.PRETERITE, 1, it.SINGULAR)), ("essere", u"fosti", (it.PRETERITE, 2, it.SINGULAR)), ("essere", u"fu", (it.PRETERITE, 3, it.SINGULAR)), ("essere", u"fummo", (it.PRETERITE, 1, it.PLURAL)), ("essere", u"foste", (it.PRETERITE, 2, it.PLURAL)), ("essere", u"furono", (it.PRETERITE, 3, it.PLURAL)), ("essere", u"sarei", (it.CONDITIONAL, 1, it.SINGULAR)), ("essere", u"saresti", (it.CONDITIONAL, 2, it.SINGULAR)), ("essere", u"sarebbe", (it.CONDITIONAL, 3, it.SINGULAR)), ("essere", u"saremmo", (it.CONDITIONAL, 1, it.PLURAL)), ("essere", u"sareste", (it.CONDITIONAL, 2, it.PLURAL)), ("essere", u"sarebbero", (it.CONDITIONAL, 3, it.PLURAL)), ("essere", u"sarò", (it.FUTURE, 1, it.SINGULAR)), ("essere", u"sarai", (it.FUTURE, 2, it.SINGULAR)), ("essere", u"sarà", (it.FUTURE, 3, it.SINGULAR)), ("essere", u"saremo", (it.FUTURE, 1, it.PLURAL)), ("essere", u"sarete", (it.FUTURE, 2, it.PLURAL)), ("essere", u"saranno", (it.FUTURE, 3, it.PLURAL)), ("essere", u"sii", (it.PRESENT, 2, it.SINGULAR, it.IMPERATIVE)), ("essere", u"sia", (it.PRESENT, 3, it.SINGULAR, it.IMPERATIVE)), ("essere", u"siamo", (it.PRESENT, 1, it.PLURAL, it.IMPERATIVE)), ("essere", u"siate", (it.PRESENT, 2, it.PLURAL, it.IMPERATIVE)), ("essere", u"siano", (it.PRESENT, 3, it.PLURAL, it.IMPERATIVE)), ("essere", u"sia", (it.PRESENT, 1, it.SINGULAR, it.SUBJUNCTIVE)), ("essere", u"sia", (it.PRESENT, 2, it.SINGULAR, it.SUBJUNCTIVE)), ("essere", u"sia", (it.PRESENT, 3, it.SINGULAR, it.SUBJUNCTIVE)), ("essere", u"siamo", (it.PRESENT, 1, it.PLURAL, it.SUBJUNCTIVE)), ("essere", u"siate", (it.PRESENT, 2, it.PLURAL, it.SUBJUNCTIVE)), ("essere", u"siano", (it.PRESENT, 3, it.PLURAL, it.SUBJUNCTIVE)), ("essere", u"fossi", (it.PAST, 1, it.SINGULAR, it.SUBJUNCTIVE)), ("essere", u"fossi", (it.PAST, 2, it.SINGULAR, it.SUBJUNCTIVE)), ("essere", u"fosse", (it.PAST, 3, it.SINGULAR, it.SUBJUNCTIVE)), ("essere", u"fossimo", (it.PAST, 1, it.PLURAL, it.SUBJUNCTIVE)), ("essere", u"foste", (it.PAST, 2, it.PLURAL, it.SUBJUNCTIVE)), ("essere", u"fossero", (it.PAST, 3, it.PLURAL, it.SUBJUNCTIVE))): self.assertEqual(it.conjugate(v1, tense), v2) print "pattern.it.conjugate()"
def test_conjugate(self): # Assert different tenses with different conjugations. for (v1, v2, tense) in (("essere", u"essere", it.INFINITIVE), ("essere", u"sono", (it.PRESENT, 1, it.SINGULAR)), ("essere", u"sei", (it.PRESENT, 2, it.SINGULAR)), ("essere", u"è", (it.PRESENT, 3, it.SINGULAR)), ("essere", u"siamo", (it.PRESENT, 1, it.PLURAL)), ("essere", u"siete", (it.PRESENT, 2, it.PLURAL)), ("essere", u"sono", (it.PRESENT, 3, it.PLURAL)), ("essere", u"essendo", (it.PRESENT + it.PARTICIPLE)), ("essere", u"stato", (it.PAST + it.PARTICIPLE)), ("essere", u"ero", (it.IMPERFECT, 1, it.SINGULAR)), ("essere", u"eri", (it.IMPERFECT, 2, it.SINGULAR)), ("essere", u"era", (it.IMPERFECT, 3, it.SINGULAR)), ("essere", u"eravamo", (it.IMPERFECT, 1, it.PLURAL)), ("essere", u"eravate", (it.IMPERFECT, 2, it.PLURAL)), ("essere", u"erano", (it.IMPERFECT, 3, it.PLURAL)), ("essere", u"fui", (it.PRETERITE, 1, it.SINGULAR)), ("essere", u"fosti", (it.PRETERITE, 2, it.SINGULAR)), ("essere", u"fu", (it.PRETERITE, 3, it.SINGULAR)), ("essere", u"fummo", (it.PRETERITE, 1, it.PLURAL)), ("essere", u"foste", (it.PRETERITE, 2, it.PLURAL)), ("essere", u"furono", (it.PRETERITE, 3, it.PLURAL)), ("essere", u"sarei", (it.CONDITIONAL, 1, it.SINGULAR)), ("essere", u"saresti", (it.CONDITIONAL, 2, it.SINGULAR)), ("essere", u"sarebbe", (it.CONDITIONAL, 3, it.SINGULAR)), ("essere", u"saremmo", (it.CONDITIONAL, 1, it.PLURAL)), ("essere", u"sareste", (it.CONDITIONAL, 2, it.PLURAL)), ("essere", u"sarebbero", (it.CONDITIONAL, 3, it.PLURAL)), ("essere", u"sarò", (it.FUTURE, 1, it.SINGULAR)), ("essere", u"sarai", (it.FUTURE, 2, it.SINGULAR)), ("essere", u"sarà", (it.FUTURE, 3, it.SINGULAR)), ("essere", u"saremo", (it.FUTURE, 1, it.PLURAL)), ("essere", u"sarete", (it.FUTURE, 2, it.PLURAL)), ("essere", u"saranno", (it.FUTURE, 3, it.PLURAL)), ("essere", u"sii", (it.PRESENT, 2, it.SINGULAR, it.IMPERATIVE)), ("essere", u"sia", (it.PRESENT, 3, it.SINGULAR, it.IMPERATIVE)), ("essere", u"siamo", (it.PRESENT, 1, it.PLURAL, it.IMPERATIVE)), ("essere", u"siate", (it.PRESENT, 2, it.PLURAL, it.IMPERATIVE)), ("essere", u"siano", (it.PRESENT, 3, it.PLURAL, it.IMPERATIVE)), ("essere", u"sia", (it.PRESENT, 1, it.SINGULAR, it.SUBJUNCTIVE)), ("essere", u"sia", (it.PRESENT, 2, it.SINGULAR, it.SUBJUNCTIVE)), ("essere", u"sia", (it.PRESENT, 3, it.SINGULAR, it.SUBJUNCTIVE)), ("essere", u"siamo", (it.PRESENT, 1, it.PLURAL, it.SUBJUNCTIVE)), ("essere", u"siate", (it.PRESENT, 2, it.PLURAL, it.SUBJUNCTIVE)), ("essere", u"siano", (it.PRESENT, 3, it.PLURAL, it.SUBJUNCTIVE)), ("essere", u"fossi", (it.PAST, 1, it.SINGULAR, it.SUBJUNCTIVE)), ("essere", u"fossi", (it.PAST, 2, it.SINGULAR, it.SUBJUNCTIVE)), ("essere", u"fosse", (it.PAST, 3, it.SINGULAR, it.SUBJUNCTIVE)), ("essere", u"fossimo", (it.PAST, 1, it.PLURAL, it.SUBJUNCTIVE)), ("essere", u"foste", (it.PAST, 2, it.PLURAL, it.SUBJUNCTIVE)), ("essere", u"fossero", (it.PAST, 3, it.PLURAL, it.SUBJUNCTIVE))): self.assertEqual(it.conjugate(v1, tense), v2) print("pattern.it.conjugate()")