MCPcopy Create free account
hub / github.com/dateutil/dateutil / testSubractionWithDatetime

Method testSubractionWithDatetime

tests/test_relativedelta.py:264–266  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

262 datetime(2000, 1, 1))
263
264 def testSubractionWithDatetime(self):
265 self.assertRaises(TypeError, lambda x, y: x - y,
266 (relativedelta(days=1), datetime(2000, 1, 1)))
267
268 def testSubtractionInvalidType(self):
269 with self.assertRaises(TypeError):

Callers

nothing calls this directly

Calls 1

relativedeltaClass · 0.90

Tested by

no test coverage detected