| 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. |