MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_access

Method test_access

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

Source from the content-addressed store, hash-verified

2641 eq_(g1.point_data, [PointData(point=Point(3, 5))])
2642
2643 def test_access(self):
2644 Point, Graph, PointData = self.classes("Point", "Graph", "PointData")
2645 g1 = Graph()
2646 g1.point_data.append(PointData(point=Point(3, 5)))
2647 g1.point_data.append(PointData(point=Point(10, 7)))
2648 eq_(g1.points, [Point(3, 5), Point(10, 7)])
2649
2650
2651class 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