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

Method test_days

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

Source from the content-addressed store, hash-verified

69 self.assertEqual(parse_duration(duration_iso_string(duration)), duration)
70
71 def test_days(self):
72 duration = datetime.timedelta(days=1, hours=1, minutes=3, seconds=5)
73 self.assertEqual(parse_duration(duration_iso_string(duration)), duration)
74
75 def test_microseconds(self):
76 duration = datetime.timedelta(hours=1, minutes=3, seconds=5, microseconds=12345)

Callers

nothing calls this directly

Calls 2

parse_durationFunction · 0.90
duration_iso_stringFunction · 0.90

Tested by

no test coverage detected