(self)
| 256 | ) |
| 257 | |
| 258 | def testSliceIndexingUntilEnd(self): |
| 259 | with self.replayData("PaginatedList.testIteration.txt"): |
| 260 | self.assertListKeyEqual( |
| 261 | self.list[310::3], |
| 262 | lambda i: i.id, |
| 263 | [268332, 204247, 169176, 166211, 165898, 163959, 132373, 104702], |
| 264 | ) |
| 265 | self.assertListKeyEqual( |
| 266 | self.list[310:], |
| 267 | lambda i: i.id, |
| 268 | [ |
| 269 | 268332, |
| 270 | 211418, |
| 271 | 205935, |
| 272 | 204247, |
| 273 | 172424, |
| 274 | 171615, |
| 275 | 169176, |
| 276 | 166214, |
| 277 | 166212, |
| 278 | 166211, |
| 279 | 166209, |
| 280 | 166208, |
| 281 | 165898, |
| 282 | 165537, |
| 283 | 165409, |
| 284 | 163959, |
| 285 | 132671, |
| 286 | 132377, |
| 287 | 132373, |
| 288 | 130269, |
| 289 | 111018, |
| 290 | 104702, |
| 291 | 94898, |
| 292 | ], |
| 293 | ) |
| 294 | |
| 295 | def testInterruptedIteration(self): |
| 296 | # No asserts, but checks that only three pages are fetched |
nothing calls this directly
no test coverage detected