예제 #1
0
 def test_in_french(self):
     pi = PendulumInterval(days=1177, seconds=7284, microseconds=1000000)
     self.assertEqual(
         '168 semaines 1 jour 2 heures 1 minute 25 secondes',
         pi.in_words(locale='fr')
     )
예제 #2
0
    def setUp(self):
        super(ForHumansTest, self).setUp()

        PendulumInterval.set_locale('en')
예제 #3
0
 def test_all(self):
     pi = PendulumInterval(days=1177, seconds=7284, microseconds=1000000)
     self.assertEqual(
         '168 weeks 1 day 2 hours 1 minute 25 seconds',
         pi.in_words()
     )