MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_row_mapping_get

Method test_row_mapping_get

test/sql/test_resultset.py:1691–1698  ·  view source on GitHub ↗
(self, connection)

Source from the content-addressed store, hash-verified

1689 eq_(len(r), 1)
1690
1691 def test_row_mapping_get(self, connection):
1692 users = self.tables.users
1693
1694 connection.execute(users.insert(), dict(user_id=1, user_name="foo"))
1695 result = connection.execute(users.select())
1696 row = result.first()
1697 eq_(row._mapping.get("user_id"), 1)
1698 eq_(row._mapping.get(users.c.user_id), 1)
1699
1700 def test_sorting_in_python(self, connection):
1701 users = self.tables.users

Callers

nothing calls this directly

Calls 6

eq_Function · 0.90
executeMethod · 0.45
insertMethod · 0.45
selectMethod · 0.45
firstMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected