(self)
| 1032 | self.assert_compile(Column("x", MyType()).contains(5), "x -> :x_1") |
| 1033 | |
| 1034 | def test_getitem(self): |
| 1035 | class MyType(UserDefinedType): |
| 1036 | cache_ok = True |
| 1037 | |
| 1038 | class comparator_factory(UserDefinedType.Comparator): |
| 1039 | def __getitem__(self, index): |
| 1040 | return self.op("->")(index) |
| 1041 | |
| 1042 | self.assert_compile(Column("x", MyType())[5], "x -> :x_1") |
| 1043 | |
| 1044 | def test_op_not_an_iterator(self): |
| 1045 | # see [ticket:2726] |
nothing calls this directly
no test coverage detected