MCPcopy
hub / github.com/django/django / test_r_format_with_date

Method test_r_format_with_date

tests/utils_tests/test_dateformat.py:238–244  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

236 self.assertEqual(dateformat.time_format(t, "P"), expected)
237
238 def test_r_format_with_date(self):
239 # Assume midnight in default timezone if datetime.date provided.
240 dt = date(2022, 7, 1)
241 self.assertEqual(
242 dateformat.format(dt, "r"),
243 "Fri, 01 Jul 2022 00:00:00 +0200",
244 )
245
246 def test_r_format_with_non_en_locale(self):
247 # Changing the locale doesn't change the "r" format.

Callers

nothing calls this directly

Calls 2

dateFunction · 0.85
formatMethod · 0.45

Tested by

no test coverage detected