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

Method test_class_members

Lib/test/datetimetester.py:285–289  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

283 self.assertEqual(tz, eval(tzrep))
284
285 def test_class_members(self):
286 limit = timedelta(hours=23, minutes=59)
287 self.assertEqual(timezone.utc.utcoffset(None), ZERO)
288 self.assertEqual(timezone.min.utcoffset(None), -limit)
289 self.assertEqual(timezone.max.utcoffset(None), limit)
290
291 def test_constructor(self):
292 self.assertIs(timezone.utc, timezone(timedelta(0)))

Callers

nothing calls this directly

Calls 3

timedeltaClass · 0.90
assertEqualMethod · 0.45
utcoffsetMethod · 0.45

Tested by

no test coverage detected