Test multiple units.
(self)
| 42 | self.assertEqual(timesince(self.t, self.t + self.oneyear), "1\xa0year") |
| 43 | |
| 44 | def test_multiple_units(self): |
| 45 | """Test multiple units.""" |
| 46 | self.assertEqual( |
| 47 | timesince(self.t, self.t + 2 * self.oneday + 6 * self.onehour), |
| 48 | "2\xa0days, 6\xa0hours", |
| 49 | ) |
| 50 | self.assertEqual( |
| 51 | timesince(self.t, self.t + 2 * self.oneweek + 2 * self.oneday), |
| 52 | "2\xa0weeks, 2\xa0days", |
| 53 | ) |
| 54 | |
| 55 | def test_display_first_unit(self): |
| 56 | """ |
nothing calls this directly
no test coverage detected