MCPcopy Index your code
hub / github.com/PyGithub/PyGithub / testSliceIndexingInFirstPage

Method testSliceIndexingInFirstPage

tests/PaginatedList.py:201–228  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

199 self.assertEqual(self.list[332].id, 94898)
200
201 def testSliceIndexingInFirstPage(self):
202 with self.replayData("PaginatedList.testGetFirstPage.txt"):
203 self.assertListKeyEqual(
204 self.list[:13],
205 lambda i: i.id,
206 [
207 4772349,
208 4767675,
209 4758608,
210 4700182,
211 4662873,
212 4608132,
213 4604661,
214 4588997,
215 4557803,
216 4554058,
217 4539985,
218 4507572,
219 4507492,
220 ],
221 )
222 self.assertListKeyEqual(
223 self.list[:13:3],
224 lambda i: i.id,
225 [4772349, 4700182, 4604661, 4554058, 4507492],
226 )
227 self.assertListKeyEqual(self.list[10:13], lambda i: i.id, [4539985, 4507572, 4507492])
228 self.assertListKeyEqual(self.list[5:13:3], lambda i: i.id, [4608132, 4557803, 4507572])
229
230 def testSliceIndexingUntilFourthPage(self):
231 self.assertListKeyEqual(

Callers

nothing calls this directly

Calls 2

replayDataMethod · 0.80
assertListKeyEqualMethod · 0.80

Tested by

no test coverage detected