MCPcopy
hub / github.com/django/django / test_equal_datetimes

Method test_equal_datetimes

tests/utils_tests/test_timesince.py:23–26  ·  view source on GitHub ↗

equal datetimes.

(self)

Source from the content-addressed store, hash-verified

21 self.oneyear = datetime.timedelta(days=366)
22
23 def test_equal_datetimes(self):
24 """equal datetimes."""
25 # NOTE: \xa0 avoids wrapping between value and unit
26 self.assertEqual(timesince(self.t, self.t), "0\xa0minutes")
27
28 def test_ignore_microseconds_and_seconds(self):
29 """Microseconds and seconds are ignored."""

Callers

nothing calls this directly

Calls 1

timesinceFunction · 0.90

Tested by

no test coverage detected