(self)
| 583 | ) |
| 584 | |
| 585 | def test_scalars_no_fetchone(self): |
| 586 | result = self._fixture() |
| 587 | |
| 588 | s = result.scalars() |
| 589 | |
| 590 | assert not hasattr(s, "fetchone") |
| 591 | |
| 592 | # original result is unchanged |
| 593 | eq_(result.mappings().fetchone(), {"a": 1, "b": 1, "c": 1}) |
| 594 | |
| 595 | # scalars |
| 596 | eq_(s.all(), [2, 1, 4]) |
| 597 | |
| 598 | def test_first(self): |
| 599 | result = self._fixture() |