(self)
| 2129 | self.assertEqual(tzr.load_name(112), "Eastern Standard Time") |
| 2130 | |
| 2131 | def testTzResNameFromString(self): |
| 2132 | tzr = tzwin.tzres() |
| 2133 | self.assertEqual(tzr.name_from_string('@tzres.dll,-221'), |
| 2134 | 'Alaskan Daylight Time') |
| 2135 | |
| 2136 | self.assertEqual(tzr.name_from_string('Samoa Daylight Time'), |
| 2137 | 'Samoa Daylight Time') |
| 2138 | |
| 2139 | with self.assertRaises(ValueError): |
| 2140 | tzr.name_from_string('@tzres.dll,100') |
| 2141 | |
| 2142 | def testIsdstZoneWithNoDaylightSaving(self): |
| 2143 | tz = tzwin.tzwin("UTC") |
nothing calls this directly
no test coverage detected