(self)
| 727 | assert_raises(exc.ResourceClosedError, result.all) |
| 728 | |
| 729 | def test_partition(self): |
| 730 | result = self._fixture() |
| 731 | |
| 732 | r = [] |
| 733 | for partition in result.partitions(2): |
| 734 | r.append(list(partition)) |
| 735 | eq_(r, [[(1, 1, 1), (2, 1, 2)], [(1, 3, 2), (4, 1, 2)]]) |
| 736 | |
| 737 | eq_(result.all(), []) |
| 738 | |
| 739 | def test_partition_unique_yield_per(self): |
| 740 | result = self._fixture() |
nothing calls this directly
no test coverage detected