mirror of https://github.com/papermerge/mglib
add one more test
parent
c5a0be464c
commit
e27107ae83
|
@ -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…
Reference in New Issue