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

Method test_combine

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

Source from the content-addressed store, hash-verified

5233 self.assertEqual(repr(t3), d + "13, 47, tzinfo=met)")
5234
5235 def test_combine(self):
5236 met = FixedOffset(60, "MET")
5237 d = date(2002, 3, 4)
5238 tz = time(18, 45, 3, 1234, tzinfo=met)
5239 dt = datetime.combine(d, tz)
5240 self.assertEqual(dt, datetime(2002, 3, 4, 18, 45, 3, 1234,
5241 tzinfo=met))
5242
5243 def test_extract(self):
5244 met = FixedOffset(60, "MET")

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected