Browse Source

add one more test

master
Eugen Ciur 1 year ago
parent
commit
e27107ae83
  1. 13
      test/test_mime.py

13
test/test_mime.py

@ -21,3 +21,16 @@ class TestConvert(unittest.TestCase):
self.assertTrue(
mime_type.is_pdf()
)
def test_get_mime_type(self):
file_path = os.path.join(
DATA_DIR,
"berlin.pdf"
)
mime_type = mime.Mime(filepath=file_path)
self.assertEquals(
mime_type.guess(),
"application/pdf"
)

Loading…
Cancel
Save