(self, connection)
| 1665 | eq_(list(row._mapping.keys()), ["user_id", "user_name_1", "count_1"]) |
| 1666 | |
| 1667 | def test_items(self, connection): |
| 1668 | users = self.tables.users |
| 1669 | |
| 1670 | connection.execute(users.insert(), dict(user_id=1, user_name="foo")) |
| 1671 | r = connection.execute(users.select()).first() |
| 1672 | eq_( |
| 1673 | [(x[0].lower(), x[1]) for x in list(r._mapping.items())], |
| 1674 | [("user_id", 1), ("user_name", "foo")], |
| 1675 | ) |
| 1676 | |
| 1677 | def test_len(self, connection): |
| 1678 | users = self.tables.users |