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

Method testComparison

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

Source from the content-addressed store, hash-verified

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,
307 minutes=1, seconds=1, microseconds=1)
308 d2 = relativedelta(years=1, months=1, days=1, leapdays=0, hours=1,
309 minutes=1, seconds=1, microseconds=1)
310 d3 = relativedelta(years=1, months=1, days=1, leapdays=0, hours=1,
311 minutes=1, seconds=1, microseconds=2)
312
313 self.assertEqual(d1, d2)
314 self.assertNotEqual(d1, d3)
315
316 def testInequalityTypeMismatch(self):
317 # Different type

Callers

nothing calls this directly

Calls 1

relativedeltaClass · 0.90

Tested by

no test coverage detected