Skip to content
Snippets Groups Projects
Commit d4c050a7 authored by Julien (jvoisin) Voisin's avatar Julien (jvoisin) Voisin
Browse files

wtf python

parent f04d4b28
Branches
No related tags found
No related merge requests found
......@@ -115,6 +115,8 @@ class TestIsSupported(unittest.TestCase):
self.assertNotIn(b"isn't supported", stdout)
class TestGetMeta(unittest.TestCase):
maxDiff = None
def test_pdf(self):
proc = subprocess.Popen(mat2_binary + ['--show', './tests/data/dirty.pdf'],
stdout=subprocess.PIPE)
......@@ -160,6 +162,7 @@ class TestGetMeta(unittest.TestCase):
proc = subprocess.Popen(mat2_binary + ['--show', './tests/data/dirty.flac'],
stdout=subprocess.PIPE, bufsize=0)
stdout, _ = proc.communicate()
self.assertIn(b'comments: Thank you for using MAT !', stdout)
self.assertIn(b'genre: Python', stdout)
self.assertIn(b'title: I am so', stdout)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment