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

Method test_simple

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

Source from the content-addressed store, hash-verified

11
12class TestDurationString(unittest.TestCase):
13 def test_simple(self):
14 duration = datetime.timedelta(hours=1, minutes=3, seconds=5)
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)

Callers

nothing calls this directly

Calls 1

duration_stringFunction · 0.90

Tested by

no test coverage detected