MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_extract

Method test_extract

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

Source from the content-addressed store, hash-verified

3040 self.assertEqual(t.strftime('%c\0%B\0'), f'{s1}\0{s2}\0')
3041
3042 def test_extract(self):
3043 dt = self.theclass(2002, 3, 4, 18, 45, 3, 1234)
3044 self.assertEqual(dt.date(), date(2002, 3, 4))
3045 self.assertEqual(dt.time(), time(18, 45, 3, 1234))
3046
3047 def test_combine(self):
3048 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