Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/django/django
/ test_date
Method
test_date
tests/utils_tests/test_dateformat.py:17–19 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
15
super().setUpClass()
16
17
def
test_date(self):
18
d = date(2009, 5, 16)
19
self.assertEqual(date.fromtimestamp(int(format(d,
"U"
))), d)
20
21
def
test_naive_datetime(self):
22
dt = datetime(2009, 5, 16, 5, 30, 30)
Callers
nothing calls this directly
Calls
2
format
Function · 0.90
date
Function · 0.85
Tested by
no test coverage detected