Example #1
0
def test_timesince():
    month_ago = datetime.now() - timedelta(days=30)
    eq_(helpers.timesince(month_ago), u'1 month ago')
    eq_(helpers.timesince(None), u'')
Example #2
0
 def render_created(self, row):
     return timesince(row.created)
Example #3
0
def test_timesince():
    month_ago = datetime.now() - timedelta(days=30)
    eq_(helpers.timesince(month_ago), u'1 month ago')
    eq_(helpers.timesince(None), u'')
Example #4
0
 def render_created(self, row):
     return timesince(row.created)