MCPcopy Create free account
hub / github.com/dateutil/dateutil / testBrokenIsDstHandling

Method testBrokenIsDstHandling

tests/test_tz.py:1350–1355  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1348 self.assertIs(dt_time(13, 20, tzinfo=tz_range).utcoffset(), None)
1349
1350 def testBrokenIsDstHandling(self):
1351 # tzrange._isdst() was using a date() rather than a datetime().
1352 # Issue reported by Lennart Regebro.
1353 dt = datetime(2007, 8, 6, 4, 10, tzinfo=tz.UTC)
1354 self.assertEqual(dt.astimezone(tz=tz.gettz("GMT+2")),
1355 datetime(2007, 8, 6, 6, 10, tzinfo=tz.tzstr("GMT+2")))
1356
1357 def testRangeTimeDelta(self):
1358 # Test that tzrange can be specified with a timedelta instead of an int.

Callers

nothing calls this directly

Calls 1

gettzMethod · 0.45

Tested by

no test coverage detected