MCPcopy
hub / github.com/django/django / test_simple

Method test_simple

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

Source from the content-addressed store, hash-verified

65
66class TestParseISODurationRoundtrip(unittest.TestCase):
67 def test_simple(self):
68 duration = datetime.timedelta(hours=1, minutes=3, seconds=5)
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)

Callers

nothing calls this directly

Calls 2

parse_durationFunction · 0.90
duration_iso_stringFunction · 0.90

Tested by

no test coverage detected