コード例 #1
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')
コード例 #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')
コード例 #3
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')
コード例 #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')