(self)
| 229 | eq_(sess.query(Edge).filter(Edge.start == None).all(), []) # noqa |
| 230 | |
| 231 | def test_comparator_aliased(self): |
| 232 | Graph, Edge, Point = ( |
| 233 | self.classes.Graph, |
| 234 | self.classes.Edge, |
| 235 | self.classes.Point, |
| 236 | ) |
| 237 | |
| 238 | sess = self._fixture() |
| 239 | |
| 240 | g = sess.query(Graph).first() |
| 241 | ea = aliased(Edge) |
| 242 | assert ( |
| 243 | sess.query(ea).filter(ea.start != Point(3, 4)).first() |
| 244 | is g.edges[1] |
| 245 | ) |
| 246 | |
| 247 | def test_update_crit_sql(self): |
| 248 | Edge, Point = (self.classes.Edge, self.classes.Point) |