Beispiel #1
0
 def test_waiting_time_one_day(self):
     row = Mock()
     row.days_since_created = 1
     row.hours_since_created = 24
     eq_(self.table.render_days_since_created(row), u'1 day')
Beispiel #2
0
 def test_waiting_time_in_hours(self):
     row = Mock()
     row.days_since_created = 0
     row.hours_since_created = 22
     eq_(self.table.render_days_since_created(row), u'22 hours')
Beispiel #3
0
 def test_waiting_time_in_days(self):
     row = Mock()
     row.days_since_created = 10
     row.hours_since_created = 10 * 24
     eq_(self.table.render_days_since_created(row), u'10 days')