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

Method cert_time_fail

Lib/test/test_ssl.py:904–906  ·  view source on GitHub ↗
(self, timestring)

Source from the content-addressed store, hash-verified

902 self.assertEqual(ssl.cert_time_to_seconds(timestring), timestamp)
903
904 def cert_time_fail(self, timestring):
905 with self.assertRaises(ValueError):
906 ssl.cert_time_to_seconds(timestring)
907
908 @unittest.skipUnless(utc_offset(),
909 'local time needs to be different from UTC')

Calls 1

assertRaisesMethod · 0.45

Tested by

no test coverage detected