1
0
Fork 0

wtf python

This commit is contained in:
jvoisin 2018-10-18 20:29:50 +02:00
parent f04d4b28fc
commit d4c050a738
1 changed files with 3 additions and 0 deletions

View File

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