(self)
| 458 | |
| 459 | class GNUTranslationsClassPluralFormsTestCase(PluralFormsTests, GettextBaseTest): |
| 460 | def setUp(self): |
| 461 | GettextBaseTest.setUp(self) |
| 462 | with open(MOFILE, 'rb') as fp: |
| 463 | t = gettext.GNUTranslations(fp) |
| 464 | |
| 465 | self.gettext = t.gettext |
| 466 | self.ngettext = t.ngettext |
| 467 | self.pgettext = t.pgettext |
| 468 | self.npgettext = t.npgettext |
| 469 | |
| 470 | def test_plural_forms_null_translations(self): |
| 471 | t = gettext.NullTranslations() |