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

Method testWeeks

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

Source from the content-addressed store, hash-verified

352 relativedelta(years=22, months=9))
353
354 def testWeeks(self):
355 # Test that the weeks property is working properly.
356 rd = relativedelta(years=4, months=2, weeks=8, days=6)
357 self.assertEqual((rd.weeks, rd.days), (8, 8 * 7 + 6))
358
359 rd.weeks = 3
360 self.assertEqual((rd.weeks, rd.days), (3, 3 * 7 + 6))
361
362 def testRelativeDeltaRepr(self):
363 self.assertEqual(repr(relativedelta(years=1, months=-1, days=15)),

Callers

nothing calls this directly

Calls 1

relativedeltaClass · 0.90

Tested by

no test coverage detected