(self, a, b, comp, a_meth, b_meth)
| 277 | # expect default behavior of object for a op b and b rop a. |
| 278 | |
| 279 | def assert_eq_subtest(self, a, b, comp, a_meth, b_meth): |
| 280 | if a_meth is None or "eq" in a_meth or "eq" in b_meth: |
| 281 | self.assertEqual(a == b, comp == 0) |
| 282 | self.assertEqual(b == a, comp == 0) |
| 283 | else: |
| 284 | self.assertEqual(a == b, a is b) |
| 285 | self.assertEqual(b == a, a is b) |
| 286 | |
| 287 | def assert_ne_subtest(self, a, b, comp, a_meth, b_meth): |
| 288 | if a_meth is None or not {"ne", "eq"}.isdisjoint(a_meth + b_meth): |
no test coverage detected