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

Function test_tzlocal_offset_unequal

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

Source from the content-addressed store, hash-verified

1020 ('JST-9', tz.tzoffset('YAKT', timedelta(hours=9))),
1021])
1022def test_tzlocal_offset_unequal(tzvar, tzoff):
1023 with TZEnvContext(tzvar):
1024 # Including both to test both __eq__ and __ne__
1025 assert tz.tzlocal() != tzoff
1026 assert not (tz.tzlocal() == tzoff)
1027
1028
1029@pytest.mark.gettz

Callers

nothing calls this directly

Calls 1

TZEnvContextClass · 0.85

Tested by

no test coverage detected