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

Method test_dst

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

Source from the content-addressed store, hash-verified

326
327
328 def test_dst(self):
329 self.assertIsNone(timezone.utc.dst(self.DT))
330
331 with self.assertRaises(TypeError): self.EST.dst('')
332 with self.assertRaises(TypeError): self.EST.dst(5)
333
334 def test_tzname(self):
335 self.assertEqual('UTC', timezone.utc.tzname(None))

Callers

nothing calls this directly

Calls 3

assertIsNoneMethod · 0.80
dstMethod · 0.45
assertRaisesMethod · 0.45

Tested by

no test coverage detected