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

Method testAbsoluteValueNegative

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

Source from the content-addressed store, hash-verified

293 self.assertTrue(relativedelta(days=1))
294
295 def testAbsoluteValueNegative(self):
296 rd_base = relativedelta(years=-1, months=-5, days=-2, hours=-3,
297 minutes=-5, seconds=-2, microseconds=-12)
298 rd_expected = relativedelta(years=1, months=5, days=2, hours=3,
299 minutes=5, seconds=2, microseconds=12)
300 self.assertEqual(abs(rd_base), rd_expected)
301
302 def testAbsoluteValuePositive(self):
303 rd_base = relativedelta(years=1, months=5, days=2, hours=3,

Callers

nothing calls this directly

Calls 1

relativedeltaClass · 0.90

Tested by

no test coverage detected