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

Function test_tzlocal_offset_equal

tests/test_tz.py:1007–1011  ·  view source on GitHub ↗
(tzvar, tzoff)

Source from the content-addressed store, hash-verified

1005 ('JST-9', tz.tzoffset('JST', timedelta(hours=9))),
1006])
1007def test_tzlocal_offset_equal(tzvar, tzoff):
1008 with TZEnvContext(tzvar):
1009 # Including both to test both __eq__ and __ne__
1010 assert tz.tzlocal() == tzoff
1011 assert not (tz.tzlocal() != tzoff)
1012
1013
1014@mark_tzlocal_nix

Callers

nothing calls this directly

Calls 1

TZEnvContextClass · 0.85

Tested by

no test coverage detected