(self)
| 2204 | self.assertEqual(tzr.load_name(112), "Eastern Standard Time") |
| 2205 | |
| 2206 | def testTzResNameFromString(self): |
| 2207 | tzr = tzwin.tzres() |
| 2208 | self.assertEqual(tzr.name_from_string('@tzres.dll,-221'), |
| 2209 | 'Alaskan Daylight Time') |
| 2210 | |
| 2211 | self.assertEqual(tzr.name_from_string('Samoa Daylight Time'), |
| 2212 | 'Samoa Daylight Time') |
| 2213 | |
| 2214 | with self.assertRaises(ValueError): |
| 2215 | tzr.name_from_string('@tzres.dll,100') |
| 2216 | |
| 2217 | def testIsdstZoneWithNoDaylightSaving(self): |
| 2218 | tz = tzwin.tzwin("UTC") |
nothing calls this directly
no test coverage detected