MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_dst

Method test_dst

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

Source from the content-addressed store, hash-verified

321
322
323 def test_dst(self):
324 self.assertIsNone(timezone.utc.dst(self.DT))
325
326 with self.assertRaises(TypeError): self.EST.dst('')
327 with self.assertRaises(TypeError): self.EST.dst(5)
328
329 def test_tzname(self):
330 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