def test_next_week_after_specified_time(self):
     d = datetime(2013, 12, 7, 15, 46, 12)
     expected = d + timedelta(days=7)
     result = timeutils.next_week(d)
     self.assertAlmostEqual(expected, result)
Example #2
0
 def test_next_week(self):
     result = timeutils.next_week()
     expected = datetime.now() + timedelta(days=7)
     self.assertAlmostEqual(
        float(timeformatutils.to_UNIXtime(expected)),
        float(timeformatutils.to_UNIXtime(result)))
 def test_next_week(self):
     result = timeutils.next_week()
     expected = datetime.now() + timedelta(days=7)
     self.assertAlmostEqual(float(timeformatutils.to_UNIXtime(expected)),
                            float(timeformatutils.to_UNIXtime(result)))
Example #4
0
 def test_next_week_after_specified_time(self):
     d = datetime(2013, 12, 7, 15, 46, 12)
     expected = d + timedelta(days=7)
     result = timeutils.next_week(d)
     self.assertAlmostEqual(expected, result)