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') )
def setUp(self): super(ForHumansTest, self).setUp() PendulumInterval.set_locale('en')
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() )