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

Method test_simple

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

Source from the content-addressed store, hash-verified

47
48class TestISODurationString(unittest.TestCase):
49 def test_simple(self):
50 duration = datetime.timedelta(hours=1, minutes=3, seconds=5)
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)

Callers

nothing calls this directly

Calls 1

duration_iso_stringFunction · 0.90

Tested by

no test coverage detected