(self, first, second, tol, rel, msg)
| 259 | check(first, second, tol, rel, msg) |
| 260 | |
| 261 | def _check_approx_seq(self, first, second, tol, rel, msg): |
| 262 | if len(first) != len(second): |
| 263 | standardMsg = ( |
| 264 | "sequences differ in length: %d items != %d items" |
| 265 | % (len(first), len(second)) |
| 266 | ) |
| 267 | msg = self._formatMessage(msg, standardMsg) |
| 268 | raise self.failureException(msg) |
| 269 | for i, (a,e) in enumerate(zip(first, second)): |
| 270 | self._check_approx_num(a, e, tol, rel, msg, i) |
| 271 | |
| 272 | def _check_approx_num(self, first, second, tol, rel, msg, idx=None): |
| 273 | if approx_equal(first, second, tol, rel): |
nothing calls this directly
no test coverage detected