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

Method testBoolean

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

Source from the content-addressed store, hash-verified

285 self.assertIs(relativedelta(days=1) / NotAValue, NotAValue)
286
287 def testBoolean(self):
288 self.assertFalse(relativedelta(days=0))
289 self.assertTrue(relativedelta(days=1))
290
291 def testAbsoluteValueNegative(self):
292 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