(self)
| 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, |
| 311 | minutes=1, seconds=1, microseconds=1) |
| 312 | d2 = relativedelta(years=1, months=1, days=1, leapdays=0, hours=1, |
| 313 | minutes=1, seconds=1, microseconds=1) |
| 314 | d3 = relativedelta(years=1, months=1, days=1, leapdays=0, hours=1, |
| 315 | minutes=1, seconds=1, microseconds=2) |
| 316 | |
| 317 | self.assertEqual(d1, d2) |
| 318 | self.assertNotEqual(d1, d3) |
| 319 | |
| 320 | def testInequalityTypeMismatch(self): |
| 321 | # Different type |
nothing calls this directly
no test coverage detected