MCPcopy Index your code
hub / github.com/python/cpython / test_cert_time_to_seconds_timezone

Method test_cert_time_to_seconds_timezone

Lib/test/test_ssl.py:910–914  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

908 @unittest.skipUnless(utc_offset(),
909 'local time needs to be different from UTC')
910 def test_cert_time_to_seconds_timezone(self):
911 # Issue #19940: ssl.cert_time_to_seconds() returns wrong
912 # results if local timezone is not UTC
913 self.cert_time_ok("May 9 00:00:00 2007 GMT", 1178668800.0)
914 self.cert_time_ok("Jan 5 09:34:43 2018 GMT", 1515144883.0)
915
916 def test_cert_time_to_seconds(self):
917 timestring = "Jan 5 09:34:43 2018 GMT"

Callers

nothing calls this directly

Calls 1

cert_time_okMethod · 0.95

Tested by

no test coverage detected