MCPcopy
hub / github.com/django/django / test_http_date

Method test_http_date

tests/utils_tests/test_http.py:342–344  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

340
341class HttpDateProcessingTests(unittest.TestCase):
342 def test_http_date(self):
343 t = 1167616461.0
344 self.assertEqual(http_date(t), "Mon, 01 Jan 2007 01:54:21 GMT")
345
346 def test_parsing_rfc1123(self):
347 parsed = parse_http_date("Sun, 06 Nov 1994 08:49:37 GMT")

Callers

nothing calls this directly

Calls 1

http_dateFunction · 0.90

Tested by

no test coverage detected