MCPcopy Index your code
hub / github.com/python/cpython / test_isoformat

Method test_isoformat

Lib/test/datetimetester.py:1582–1584  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1580 self.assertEqual(L, iso_long_years)
1581
1582 def test_isoformat(self):
1583 t = self.theclass(2, 3, 2)
1584 self.assertEqual(t.isoformat(), "0002-03-02")
1585
1586 def test_ctime(self):
1587 t = self.theclass(2002, 3, 2)

Callers

nothing calls this directly

Calls 2

assertEqualMethod · 0.45
isoformatMethod · 0.45

Tested by

no test coverage detected