(self)
| 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 |
nothing calls this directly
no test coverage detected