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