(self)
| 846 | return Thing, AB, CD |
| 847 | |
| 848 | def test_round_trip(self): |
| 849 | Thing, AB, CD = self._fixture() |
| 850 | |
| 851 | s = fixture_session() |
| 852 | |
| 853 | s.add(Thing(AB("a", "b", CD("c", "d")))) |
| 854 | s.commit() |
| 855 | |
| 856 | s.close() |
| 857 | |
| 858 | t1 = ( |
| 859 | s.query(Thing).filter(Thing.ab == AB("a", "b", CD("c", "d"))).one() |
| 860 | ) |
| 861 | eq_(t1.ab, AB("a", "b", CD("c", "d"))) |
| 862 | |
| 863 | |
| 864 | class EventsEtcTest(fixtures.MappedTest): |