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

Method test_combine

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

Source from the content-addressed store, hash-verified

5046 self.assertEqual(repr(t3), d + "13, 47, tzinfo=met)")
5047
5048 def test_combine(self):
5049 met = FixedOffset(60, "MET")
5050 d = date(2002, 3, 4)
5051 tz = time(18, 45, 3, 1234, tzinfo=met)
5052 dt = datetime.combine(d, tz)
5053 self.assertEqual(dt, datetime(2002, 3, 4, 18, 45, 3, 1234,
5054 tzinfo=met))
5055
5056 def test_extract(self):
5057 met = FixedOffset(60, "MET")

Callers

nothing calls this directly

Calls 6

dateClass · 0.90
timeClass · 0.90
datetimeClass · 0.90
FixedOffsetClass · 0.70
combineMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected