| 169 | eq_(e.end, Point(18, 4)) |
| 170 | |
| 171 | def test_not_none(self): |
| 172 | Edge = self.classes.Edge |
| 173 | Point = self.classes.Point |
| 174 | |
| 175 | # new in 2.1; None return can be controlled, so by default you |
| 176 | # get an empty populated object |
| 177 | e1 = Edge() |
| 178 | eq_(e1.end, Point(None, None)) |
| 179 | sess = fixture_session() |
| 180 | sess.add(e1) |
| 181 | |
| 182 | # old notes here referred to 0.7.3 as well as issue #2308, #2309. |
| 183 | # however as of 2.1 this is consistent |
| 184 | |
| 185 | sess.flush() |
| 186 | eq_(e1.end, Point(None, None)) |
| 187 | |
| 188 | def test_eager_load(self): |
| 189 | Graph, Point = self.classes.Graph, self.classes.Point |