MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / test_access

Method test_access

test/ext/test_associationproxy.py:2537–2542  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2535 eq_(g1.point_data, [PointData(point=Point(3, 5))])
2536
2537 def test_access(self):
2538 Point, Graph, PointData = self.classes("Point", "Graph", "PointData")
2539 g1 = Graph()
2540 g1.point_data.append(PointData(point=Point(3, 5)))
2541 g1.point_data.append(PointData(point=Point(10, 7)))
2542 eq_(g1.points, [Point(3, 5), Point(10, 7)])
2543
2544
2545class AttributeAccessTest(fixtures.TestBase):

Callers

nothing calls this directly

Calls 5

eq_Function · 0.90
PointDataClass · 0.85
GraphClass · 0.70
PointClass · 0.70
appendMethod · 0.45

Tested by

no test coverage detected