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

Method testTzwinLocalRepr

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

Source from the content-addressed store, hash-verified

2377 self.assertEqual(repr(tw), 'tzwinlocal()')
2378
2379 def testTzwinLocalRepr(self):
2380 # https://github.com/dateutil/dateutil/issues/143
2381 with TZWinContext('Eastern Standard Time'):
2382 tw = tz.tzwinlocal()
2383
2384 self.assertEqual(str(tw), 'tzwinlocal(' +
2385 repr('Eastern Standard Time') + ')')
2386
2387 with TZWinContext('Pacific Standard Time'):
2388 tw = tz.tzwinlocal()
2389
2390 self.assertEqual(str(tw), 'tzwinlocal(' +
2391 repr('Pacific Standard Time') + ')')
2392
2393 def testTzwinLocalEquality(self):
2394 tw_est = tz.tzwin('Eastern Standard Time')

Callers

nothing calls this directly

Calls 1

TZWinContextClass · 0.85

Tested by

no test coverage detected