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

Method test_simple

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

Source from the content-addressed store, hash-verified

29
30class TestParseDurationRoundtrip(unittest.TestCase):
31 def test_simple(self):
32 duration = datetime.timedelta(hours=1, minutes=3, seconds=5)
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)

Callers

nothing calls this directly

Calls 2

parse_durationFunction · 0.90
duration_stringFunction · 0.90

Tested by

no test coverage detected