Files
pdfplumber/tests/test_list_metadata.py
2020-12-16 22:29:51 -05:00

18 lines
370 B
Python

#!/usr/bin/env python
import unittest
import pdfplumber
import os
import logging
logging.disable(logging.ERROR)
HERE = os.path.abspath(os.path.dirname(__file__))
class Test(unittest.TestCase):
def test_load(self):
path = os.path.join(HERE, "pdfs/cupertino_usd_4-6-16.pdf")
with pdfplumber.open(path) as pdf:
assert len(pdf.metadata)