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

Method test_iso2time_formats

Lib/test/test_http_cookiejar.py:165–170  ·  view source on GitHub ↗
(self, s)

Source from the content-addressed store, hash-verified

163 ' 1994-02-03T00:00:00 ',
164 ])
165 def test_iso2time_formats(self, s):
166 # test iso2time for supported dates.
167 test_t = 760233600 # assume broken POSIX counting of seconds
168 self.assertEqual(iso2time(s), test_t, s)
169 self.assertEqual(iso2time(s.lower()), test_t, s.lower())
170 self.assertEqual(iso2time(s.upper()), test_t, s.upper())
171
172 @support.subTests('test', [
173 '',

Callers

nothing calls this directly

Calls 4

iso2timeFunction · 0.90
assertEqualMethod · 0.45
lowerMethod · 0.45
upperMethod · 0.45

Tested by

no test coverage detected