def test_recent_timestamp(self):
     # signature timestamps in the recent past are OK
     now = time.time()
     one_hour = 60 * 60
     # this should not raise an exception
     ensure_sane_signature_timestamp(now - one_hour, 'bug report')
示例#2
0
 def test_recent_timestamp(self):
     # signature timestamps in the recent past are OK
     now = time.time()
     one_hour = 60 * 60
     # this should not raise an exception
     ensure_sane_signature_timestamp(now - one_hour, 'bug report')
 def test_near_future_timestamp(self):
     # signature timestamps in the near future are OK
     now = time.time()
     one_minute = 60
     # this should not raise an exception
     ensure_sane_signature_timestamp(now + one_minute, 'bug report')
示例#4
0
 def test_near_future_timestamp(self):
     # signature timestamps in the near future are OK
     now = time.time()
     one_minute = 60
     # this should not raise an exception
     ensure_sane_signature_timestamp(now + one_minute, 'bug report')