MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_round_trip

Method test_round_trip

test/orm/test_composites.py:141–153  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

139 Edge.start.__clause_element__()
140
141 def test_round_trip(self):
142 Graph, Point = self.classes.Graph, self.classes.Point
143
144 sess = self._fixture()
145
146 g1 = sess.query(Graph).first()
147 sess.close()
148
149 g = sess.get(Graph, g1.id)
150 eq_(
151 [(e.start, e.end) for e in g.edges],
152 [(Point(3, 4), Point(5, 6)), (Point(14, 5), Point(2, 7))],
153 )
154
155 def test_detect_change(self):
156 Graph, Edge, Point = (

Callers

nothing calls this directly

Calls 7

_fixtureMethod · 0.95
eq_Function · 0.90
PointClass · 0.70
firstMethod · 0.45
queryMethod · 0.45
closeMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected