mirror of
https://github.com/kanzure/pdfparanoia.git
synced 2024-12-04 23:15:52 +01:00
start fixing some tests
This commit is contained in:
parent
681af5c175
commit
26dfe093fe
@ -8,13 +8,13 @@ class JSTORTestCase(unittest.TestCase):
|
|||||||
file_handler = open("tests/samples/jstor/231a515256115368c142f528cee7f727.pdf", "rb")
|
file_handler = open("tests/samples/jstor/231a515256115368c142f528cee7f727.pdf", "rb")
|
||||||
content = file_handler.read()
|
content = file_handler.read()
|
||||||
file_handler.close()
|
file_handler.close()
|
||||||
self.assertIn("\n18 0 obj \n", content)
|
self.assertIn(b"\n18 0 obj \n", content)
|
||||||
|
|
||||||
# this section will later be manipulated
|
# this section will later be manipulated
|
||||||
self.assertIn("\n19 0 obj \n", content)
|
self.assertIn(b"\n19 0 obj \n", content)
|
||||||
|
|
||||||
output = pdfparanoia.plugins.JSTOR.scrub(content)
|
output = pdfparanoia.plugins.JSTOR.scrub(content)
|
||||||
|
|
||||||
# FlateDecode should be replaced with a decompressed section
|
# FlateDecode should be replaced with a decompressed section
|
||||||
self.assertIn("\n19 0 obj\n<</Length 2862>>stream", output)
|
self.assertIn(b"\n19 0 obj\n<</Length 2862>>stream", output)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user