def test_1_year_3_months_ago(self): func = ago(years=1, months=3) d = func() self.assert_timestamp_equal(1287199294, d)
def test_2_days_50_seconds_ago(self): func = ago(days=2, seconds=50) d = func() self.assert_timestamp_equal(1326338444, d)
def test_5_minutes_ago(self): func = ago(minutes=5) d = func() self.assert_timestamp_equal(1326510994, d)