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

Method testBrokenIsDstHandling

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

Source from the content-addressed store, hash-verified

1424 self.assertIs(dt_time(13, 20, tzinfo=tz_range).utcoffset(), None)
1425
1426 def testBrokenIsDstHandling(self):
1427 # tzrange._isdst() was using a date() rather than a datetime().
1428 # Issue reported by Lennart Regebro.
1429 dt = datetime(2007, 8, 6, 4, 10, tzinfo=tz.UTC)
1430 self.assertEqual(dt.astimezone(tz=tz.gettz("GMT+2")),
1431 datetime(2007, 8, 6, 6, 10, tzinfo=tz.tzstr("GMT+2")))
1432
1433 def testRangeTimeDelta(self):
1434 # 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