13 lines
472 B
Python
13 lines
472 B
Python
import os
|
|
|
|
from passerelle.utils.conversion import to_pdf
|
|
|
|
|
|
def test_pdf_to_pdf_do_nothing():
|
|
pdf = open(os.path.join(os.path.dirname(__file__), 'data', 'minimal.pdf'), 'rb').read()
|
|
assert to_pdf(pdf) == pdf
|
|
pdf = open(os.path.join(os.path.dirname(__file__), 'data', 'minimal_bom.pdf'), 'rb').read()
|
|
assert to_pdf(pdf) == pdf
|
|
pdf = open(os.path.join(os.path.dirname(__file__), 'data', 'minimal_bomutf8.pdf'), 'rb').read()
|
|
assert to_pdf(pdf) == pdf
|