(self)
| 485 | m.move(0, 0, 0) |
| 486 | |
| 487 | def test_anonymous(self): |
| 488 | # anonymous mmap.mmap(-1, PAGE) |
| 489 | m = mmap.mmap(-1, PAGESIZE) |
| 490 | for x in range(PAGESIZE): |
| 491 | self.assertEqual(m[x], 0, |
| 492 | "anonymously mmap'ed contents should be zero") |
| 493 | |
| 494 | for x in range(PAGESIZE): |
| 495 | b = x & 0xff |
| 496 | m[x] = b |
| 497 | self.assertEqual(m[x], b) |
| 498 | self.assertEqual(m.size(), PAGESIZE) |
| 499 | |
| 500 | def test_read_all(self): |
| 501 | m = mmap.mmap(-1, 16) |
nothing calls this directly
no test coverage detected