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

Method testAbsoluteValuePositive

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

Source from the content-addressed store, hash-verified

296 self.assertEqual(abs(rd_base), rd_expected)
297
298 def testAbsoluteValuePositive(self):
299 rd_base = relativedelta(years=1, months=5, days=2, hours=3,
300 minutes=5, seconds=2, microseconds=12)
301 rd_expected = rd_base
302
303 self.assertEqual(abs(rd_base), rd_expected)
304
305 def testComparison(self):
306 d1 = relativedelta(years=1, months=1, days=1, leapdays=0, hours=1,

Callers

nothing calls this directly

Calls 1

relativedeltaClass · 0.90

Tested by

no test coverage detected