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

Method test_negative

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

Source from the content-addressed store, hash-verified

23 self.assertEqual(duration_string(duration), "01:03:05.012345")
24
25 def test_negative(self):
26 duration = datetime.timedelta(days=-1, hours=1, minutes=3, seconds=5)
27 self.assertEqual(duration_string(duration), "-1 01:03:05")
28
29
30class TestParseDurationRoundtrip(unittest.TestCase):

Callers

nothing calls this directly

Calls 1

duration_stringFunction · 0.90

Tested by

no test coverage detected