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

Method cert_time_ok

Lib/test/test_ssl.py:901–902  ·  view source on GitHub ↗
(self, timestring, timestamp)

Source from the content-addressed store, hash-verified

899 self.assertEqual(str(cx.exception), "only stream sockets are supported")
900
901 def cert_time_ok(self, timestring, timestamp):
902 self.assertEqual(ssl.cert_time_to_seconds(timestring), timestamp)
903
904 def cert_time_fail(self, timestring):
905 with self.assertRaises(ValueError):

Calls 1

assertEqualMethod · 0.45

Tested by

no test coverage detected