1
0
mirror of synced 2024-11-25 18:54:22 +01:00

wtf python

This commit is contained in:
jvoisin 2018-10-18 20:29:50 +02:00
parent f04d4b28fc
commit d4c050a738

View File

@ -115,6 +115,8 @@ class TestIsSupported(unittest.TestCase):
self.assertNotIn(b"isn't supported", stdout) self.assertNotIn(b"isn't supported", stdout)
class TestGetMeta(unittest.TestCase): class TestGetMeta(unittest.TestCase):
maxDiff = None
def test_pdf(self): def test_pdf(self):
proc = subprocess.Popen(mat2_binary + ['--show', './tests/data/dirty.pdf'], proc = subprocess.Popen(mat2_binary + ['--show', './tests/data/dirty.pdf'],
stdout=subprocess.PIPE) stdout=subprocess.PIPE)
@ -160,6 +162,7 @@ class TestGetMeta(unittest.TestCase):
proc = subprocess.Popen(mat2_binary + ['--show', './tests/data/dirty.flac'], proc = subprocess.Popen(mat2_binary + ['--show', './tests/data/dirty.flac'],
stdout=subprocess.PIPE, bufsize=0) stdout=subprocess.PIPE, bufsize=0)
stdout, _ = proc.communicate() stdout, _ = proc.communicate()
self.assertIn(b'comments: Thank you for using MAT !', stdout)
self.assertIn(b'genre: Python', stdout) self.assertIn(b'genre: Python', stdout)
self.assertIn(b'title: I am so', stdout) self.assertIn(b'title: I am so', stdout)