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

Method test_days

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

Source from the content-addressed store, hash-verified

15 self.assertEqual(duration_string(duration), "01:03:05")
16
17 def test_days(self):
18 duration = datetime.timedelta(days=1, hours=1, minutes=3, seconds=5)
19 self.assertEqual(duration_string(duration), "1 01:03:05")
20
21 def test_microseconds(self):
22 duration = datetime.timedelta(hours=1, minutes=3, seconds=5, microseconds=12345)

Callers

nothing calls this directly

Calls 1

duration_stringFunction · 0.90

Tested by

no test coverage detected