MCPcopy
hub / github.com/django/django / test_days

Method test_days

tests/utils_tests/test_duration.py:53–55  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

51 self.assertEqual(duration_iso_string(duration), "P0DT01H03M05S")
52
53 def test_days(self):
54 duration = datetime.timedelta(days=1, hours=1, minutes=3, seconds=5)
55 self.assertEqual(duration_iso_string(duration), "P1DT01H03M05S")
56
57 def test_microseconds(self):
58 duration = datetime.timedelta(hours=1, minutes=3, seconds=5, microseconds=12345)

Callers

nothing calls this directly

Calls 1

duration_iso_stringFunction · 0.90

Tested by

no test coverage detected