MCPcopy
hub / github.com/django/django / test_epoch

Method test_epoch

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

Source from the content-addressed store, hash-verified

64 )
65
66 def test_epoch(self):
67 udt = datetime(1970, 1, 1, tzinfo=UTC)
68 self.assertEqual(format(udt, "U"), "0")
69
70 def test_empty_format(self):
71 my_birthday = datetime(1979, 7, 8, 22, 00)

Callers

nothing calls this directly

Calls 1

formatFunction · 0.90

Tested by

no test coverage detected