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

Method testAbsoluteValuePositive

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

Source from the content-addressed store, hash-verified

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,
304 minutes=5, seconds=2, microseconds=12)
305 rd_expected = rd_base
306
307 self.assertEqual(abs(rd_base), rd_expected)
308
309 def testComparison(self):
310 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