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

Method test_extract

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

Source from the content-addressed store, hash-verified

3205 self.assertEqual(t.strftime('%c\0%B\0'), f'{s1}\0{s2}\0')
3206
3207 def test_extract(self):
3208 dt = self.theclass(2002, 3, 4, 18, 45, 3, 1234)
3209 self.assertEqual(dt.date(), date(2002, 3, 4))
3210 self.assertEqual(dt.time(), time(18, 45, 3, 1234))
3211
3212 def test_combine(self):
3213 d = date(2002, 3, 4)

Callers

nothing calls this directly

Calls 5

dateClass · 0.90
timeClass · 0.90
dateMethod · 0.80
assertEqualMethod · 0.45
timeMethod · 0.45

Tested by

no test coverage detected