def test_plurals2(self): locale = locales.BulgarianLocale() self.assertEqual(locale._format_timeframe("hours", 0), "0 часа") self.assertEqual(locale._format_timeframe("hours", 1), "1 час") self.assertEqual(locale._format_timeframe("hours", 2), "2 часа") self.assertEqual(locale._format_timeframe("hours", 4), "4 часа") self.assertEqual(locale._format_timeframe("hours", 5), "5 часа") self.assertEqual(locale._format_timeframe("hours", 21), "21 час") self.assertEqual(locale._format_timeframe("hours", 22), "22 часа") self.assertEqual(locale._format_timeframe("hours", 25), "25 часа") # feminine grammatical gender should be tested separately self.assertEqual(locale._format_timeframe("minutes", 0), "0 минути") self.assertEqual(locale._format_timeframe("minutes", 1), "1 минута") self.assertEqual(locale._format_timeframe("minutes", 2), "2 минути") self.assertEqual(locale._format_timeframe("minutes", 4), "4 минути") self.assertEqual(locale._format_timeframe("minutes", 5), "5 минути") self.assertEqual(locale._format_timeframe("minutes", 21), "21 минута") self.assertEqual(locale._format_timeframe("minutes", 22), "22 минути") self.assertEqual(locale._format_timeframe("minutes", 25), "25 минути")
def test_plurals2(self): locale = locales.BulgarianLocale() assertEqual(locale._format_timeframe('hours', 0), '0 часа') assertEqual(locale._format_timeframe('hours', 1), '1 час') assertEqual(locale._format_timeframe('hours', 2), '2 часа') assertEqual(locale._format_timeframe('hours', 4), '4 часа') assertEqual(locale._format_timeframe('hours', 5), '5 часа') assertEqual(locale._format_timeframe('hours', 21), '21 час') assertEqual(locale._format_timeframe('hours', 22), '22 часа') assertEqual(locale._format_timeframe('hours', 25), '25 часа') # feminine grammatical gender should be tested separately assertEqual(locale._format_timeframe('minutes', 0), '0 минути') assertEqual(locale._format_timeframe('minutes', 1), '1 минута') assertEqual(locale._format_timeframe('minutes', 2), '2 минути') assertEqual(locale._format_timeframe('minutes', 4), '4 минути') assertEqual(locale._format_timeframe('minutes', 5), '5 минути') assertEqual(locale._format_timeframe('minutes', 21), '21 минута') assertEqual(locale._format_timeframe('minutes', 22), '22 минути') assertEqual(locale._format_timeframe('minutes', 25), '25 минути')
def test_plurals2(self): locale = locales.BulgarianLocale() assert locale._format_timeframe("hours", 0) == "0 часа" assert locale._format_timeframe("hours", 1) == "1 час" assert locale._format_timeframe("hours", 2) == "2 часа" assert locale._format_timeframe("hours", 4) == "4 часа" assert locale._format_timeframe("hours", 5) == "5 часа" assert locale._format_timeframe("hours", 21) == "21 час" assert locale._format_timeframe("hours", 22) == "22 часа" assert locale._format_timeframe("hours", 25) == "25 часа" # feminine grammatical gender should be tested separately assert locale._format_timeframe("minutes", 0) == "0 минути" assert locale._format_timeframe("minutes", 1) == "1 минута" assert locale._format_timeframe("minutes", 2) == "2 минути" assert locale._format_timeframe("minutes", 4) == "4 минути" assert locale._format_timeframe("minutes", 5) == "5 минути" assert locale._format_timeframe("minutes", 21) == "21 минута" assert locale._format_timeframe("minutes", 22) == "22 минути" assert locale._format_timeframe("minutes", 25) == "25 минути"