(self, connection)
| 238 | not_in("foobar", r._mapping) |
| 239 | |
| 240 | def test_row_iteration(self, connection): |
| 241 | users = self.tables.users |
| 242 | |
| 243 | connection.execute( |
| 244 | users.insert(), |
| 245 | [ |
| 246 | {"user_id": 7, "user_name": "jack"}, |
| 247 | {"user_id": 8, "user_name": "ed"}, |
| 248 | {"user_id": 9, "user_name": "fred"}, |
| 249 | ], |
| 250 | ) |
| 251 | r = connection.execute(users.select()) |
| 252 | rows = [] |
| 253 | for row in r: |
| 254 | rows.append(row) |
| 255 | eq_(len(rows), 3) |
| 256 | |
| 257 | def test_scalars(self, connection): |
| 258 | users = self.tables.users |