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

Method test_days

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

Source from the content-addressed store, hash-verified

33 self.assertEqual(parse_duration(duration_string(duration)), duration)
34
35 def test_days(self):
36 duration = datetime.timedelta(days=1, hours=1, minutes=3, seconds=5)
37 self.assertEqual(parse_duration(duration_string(duration)), duration)
38
39 def test_microseconds(self):
40 duration = datetime.timedelta(hours=1, minutes=3, seconds=5, microseconds=12345)

Callers

nothing calls this directly

Calls 2

parse_durationFunction · 0.90
duration_stringFunction · 0.90

Tested by

no test coverage detected