Exemple #1
0
    def test_ordinal_number(self):
        locale = locales.FrenchLocale()

        self.assertEqual(locale.ordinal_number(1), "1er")
        self.assertEqual(locale.ordinal_number(2), "2e")
Exemple #2
0
    def test_ordinal_number(self):
        locale = locales.FrenchLocale()

        assertEqual(locale.ordinal_number(1), '1er')
        assertEqual(locale.ordinal_number(2), '2e')
Exemple #3
0
    def test_ordinal_number(self):
        locale = locales.FrenchLocale()

        assert locale.ordinal_number(1) == "1er"
        assert locale.ordinal_number(2) == "2e"