def test_no_drift(self):
     header = strftime("%a, %d %b %Y %H:%M:%S GMT", gmtime())
     self.assertFalse(drift_check(header))
Esempio n. 2
0
 def test_no_drift(self):
     header = strftime("%a, %d %b %Y %H:%M:%S GMT", gmtime())
     self.assertFalse(drift_check(header))
 def test_big_drift(self):
     # let's move this back to just a few hours before the
     # end of time, so this test doesn't fail on 32bit machines
     self.assertTrue(drift_check("Mon, 18 Jan 2038 19:10:56 GMT", 6))
Esempio n. 4
0
 def test_big_drift(self):
     # let's move this back to just a few hours before the
     # end of time, so this test doesn't fail on 32bit machines
     self.assertTrue(drift_check("Mon, 18 Jan 2038 19:10:56 GMT", 6))