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

Method test_items

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

Source from the content-addressed store, hash-verified

1600 eq_(list(row._mapping.keys()), ["user_id", "user_name_1", "count_1"])
1601
1602 def test_items(self, connection):
1603 users = self.tables.users
1604
1605 connection.execute(users.insert(), dict(user_id=1, user_name="foo"))
1606 r = connection.execute(users.select()).first()
1607 eq_(
1608 [(x[0].lower(), x[1]) for x in list(r._mapping.items())],
1609 [("user_id", 1), ("user_name", "foo")],
1610 )
1611
1612 def test_len(self, connection):
1613 users = self.tables.users

Callers

nothing calls this directly

Calls 7

eq_Function · 0.90
lowerMethod · 0.80
executeMethod · 0.45
insertMethod · 0.45
firstMethod · 0.45
selectMethod · 0.45
itemsMethod · 0.45

Tested by

no test coverage detected