(self)
| 931 | |
| 932 | class NewOperatorTest(_CustomComparatorTests, fixtures.TestBase): |
| 933 | def _add_override_factory(self): |
| 934 | class MyInteger(Integer): |
| 935 | class comparator_factory(TypeEngine.Comparator): |
| 936 | def __init__(self, expr): |
| 937 | super().__init__(expr) |
| 938 | |
| 939 | def foob(self, other): |
| 940 | return self.expr.op("foob")(other) |
| 941 | |
| 942 | return MyInteger |
| 943 | |
| 944 | def _assert_add_override(self, expr): |
| 945 | assert (expr.foob(5)).compare(expr.op("foob")(5)) |
no outgoing calls
no test coverage detected