(self)
| 914 | |
| 915 | class NewOperatorTest(_CustomComparatorTests, fixtures.TestBase): |
| 916 | def _add_override_factory(self): |
| 917 | class MyInteger(Integer): |
| 918 | class comparator_factory(TypeEngine.Comparator): |
| 919 | def __init__(self, expr): |
| 920 | super().__init__(expr) |
| 921 | |
| 922 | def foob(self, other): |
| 923 | return self.expr.op("foob")(other) |
| 924 | |
| 925 | return MyInteger |
| 926 | |
| 927 | def _assert_add_override(self, expr): |
| 928 | assert (expr.foob(5)).compare(expr.op("foob")(5)) |
no outgoing calls
no test coverage detected