MCPcopy Index your code
hub / github.com/python-pendulum/pendulum / test_equal_with_timezone_true

Function test_equal_with_timezone_true

tests/datetime/test_comparison.py:30–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28
29
30def test_equal_with_timezone_true():
31 d1 = pendulum.datetime(2000, 1, 1, 12, 0, 0, tz="America/Toronto")
32 d2 = pendulum.datetime(2000, 1, 1, 9, 0, 0, tz="America/Vancouver")
33 d3 = datetime(2000, 1, 1, 12, 0, 0, tzinfo=pendulum.timezone("America/Toronto"))
34
35 assert d2 == d1
36 assert d3 == d1
37
38
39def test_equal_with_timezone_false():

Callers

nothing calls this directly

Calls 3

datetimeFunction · 0.85
timezoneMethod · 0.80
datetimeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…