예제 #1
0
def test_humanize_time(inp, expected):
    # flexmock(datetime, now=datetime(year=2000, month=1, day=1))
    n = datetime.now()
    assert humanize_time(n - inp) == expected
예제 #2
0
 def display_time_created(self):
     return humanize_time(self.created)
예제 #3
0
 def display_time_created(self):
     return humanize_time(self.created)
예제 #4
0
def test_humanize_time(inp, expected):
    # flexmock(datetime, now=datetime(year=2000, month=1, day=1))
    n = datetime.now()
    assert humanize_time(n - inp) == expected