()
| 17 | |
| 18 | |
| 19 | def test_pageids(): |
| 20 | assert doc.chapter_count == 7 |
| 21 | assert doc.last_location == (6, 1) |
| 22 | assert doc.prev_location((6, 0)) == (5, 11) |
| 23 | assert doc.next_location((5, 11)) == (6, 0) |
| 24 | # Check page numbers have no gaps: |
| 25 | i = 0 |
| 26 | for chapter in range(doc.chapter_count): |
| 27 | for cpno in range(doc.chapter_page_count(chapter)): |
| 28 | assert doc.page_number_from_location((chapter, cpno)) == i |
| 29 | i += 1 |
| 30 | |
| 31 | def test_layout(): |
| 32 | """Memorize a page location, re-layout with ISO-A4, assert pre-determined location.""" |
nothing calls this directly
no test coverage detected
searching dependent graphs…