MCPcopy
hub / github.com/django/django / test_negative

Method test_negative

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

Source from the content-addressed store, hash-verified

41 self.assertEqual(parse_duration(duration_string(duration)), duration)
42
43 def test_negative(self):
44 duration = datetime.timedelta(days=-1, hours=1, minutes=3, seconds=5)
45 self.assertEqual(parse_duration(duration_string(duration)), duration)
46
47
48class TestISODurationString(unittest.TestCase):

Callers

nothing calls this directly

Calls 2

parse_durationFunction · 0.90
duration_stringFunction · 0.90

Tested by

no test coverage detected