Skip to content

Commit

Permalink
refs #19210 Added test to check multiple units
Browse files Browse the repository at this point in the history
  • Loading branch information
hirokiky committed Jan 1, 2013
1 parent 68d64fe commit cd06f4e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/regressiontests/utils/timesince.py
Expand Up @@ -47,6 +47,10 @@ def test_multiple_units(self):
self.t+2*self.oneday+6*self.onehour), '2 days, 6 hours')
self.assertEqual(timesince(self.t,
self.t+2*self.oneweek+2*self.oneday), '2 weeks, 2 days')
self.assertEqual(timesince(self.t,
self.t+2*self.oneyear+3*self.onemonth), '2 years, 3 months')
self.assertEqual(timesince(self.t,
self.t+2*self.oneyear+9*self.onemonth), '2 years, 9 months')

def test_display_first_unit(self):
"""
Expand Down

0 comments on commit cd06f4e

Please sign in to comment.