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

Function test_to_strings

tests/datetime/test_naive.py:61–68  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

59
60
61def test_to_strings():
62 dt = pendulum.naive(2013, 3, 31, 2, 30)
63
64 assert dt.isoformat() == "2013-03-31T02:30:00"
65 assert dt.to_iso8601_string() == "2013-03-31T02:30:00"
66 assert dt.to_rfc3339_string() == "2013-03-31T02:30:00"
67 assert dt.to_atom_string() == "2013-03-31T02:30:00"
68 assert dt.to_cookie_string() == "Sunday, 31-Mar-2013 02:30:00 "
69
70
71def test_naive_method():

Callers

nothing calls this directly

Calls 5

naiveMethod · 0.80
to_iso8601_stringMethod · 0.80
to_rfc3339_stringMethod · 0.80
to_atom_stringMethod · 0.80
to_cookie_stringMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…