add one more test

master
Eugen Ciur 2021-02-22 12:33:46 +01:00
parent c5a0be464c
commit e27107ae83
1 changed files with 13 additions and 0 deletions

View File

@ -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"
)