109 |
|
|
110 |
|
|
111 |
def testSavePageSpans(): |
def testSavePageSpans(): |
112 |
"""Test saving page spans.""" |
""" |
113 |
|
Test saving and re-loading page spans. |
114 |
|
|
115 |
|
Exploits an implementation detail of PageImageScroll: it doesn't look |
116 |
|
at the actual block, just at the mstmpimg version of it. So we can |
117 |
|
create an empty block with content type application/pdf and expect the |
118 |
|
test to work. |
119 |
|
""" |
120 |
|
|
121 |
# Create dummy pageimage scroll |
# Create dummy pageimage scroll |
122 |
id = serv.addDatum("", "application/pdf") |
id = serv.addDatum("", "application/pdf") |