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

Method testTzwinLocalRepr

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

Source from the content-addressed store, hash-verified

2302 self.assertEqual(repr(tw), 'tzwinlocal()')
2303
2304 def testTzwinLocalRepr(self):
2305 # https://github.com/dateutil/dateutil/issues/143
2306 with TZWinContext('Eastern Standard Time'):
2307 tw = tz.tzwinlocal()
2308
2309 self.assertEqual(str(tw), 'tzwinlocal(' +
2310 repr('Eastern Standard Time') + ')')
2311
2312 with TZWinContext('Pacific Standard Time'):
2313 tw = tz.tzwinlocal()
2314
2315 self.assertEqual(str(tw), 'tzwinlocal(' +
2316 repr('Pacific Standard Time') + ')')
2317
2318 def testTzwinLocalEquality(self):
2319 tw_est = tz.tzwin('Eastern Standard Time')

Callers

nothing calls this directly

Calls 1

TZWinContextClass · 0.85

Tested by

no test coverage detected