wtf python
This commit is contained in:
parent
f04d4b28fc
commit
d4c050a738
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user