()
| 18 | |
| 19 | |
| 20 | def test_all(): |
| 21 | pi = pendulum.duration( |
| 22 | years=2, months=3, days=1177, seconds=7284, microseconds=1000000 |
| 23 | ) |
| 24 | |
| 25 | expected = "2 years 3 months 168 weeks 1 day 2 hours 1 minute 25 seconds" |
| 26 | assert pi.in_words() == expected |
| 27 | |
| 28 | |
| 29 | def test_in_french(): |