summaryrefslogtreecommitdiff
path: root/tests/test_climat2.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_climat2.py')
-rw-r--r--tests/test_climat2.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test_climat2.py b/tests/test_climat2.py
index 3f766d8..dd7c9b9 100644
--- a/tests/test_climat2.py
+++ b/tests/test_climat2.py
@@ -115,6 +115,8 @@ class TestIsSupported(unittest.TestCase):
115 self.assertNotIn(b"isn't supported", stdout) 115 self.assertNotIn(b"isn't supported", stdout)
116 116
117class TestGetMeta(unittest.TestCase): 117class TestGetMeta(unittest.TestCase):
118 maxDiff = None
119
118 def test_pdf(self): 120 def test_pdf(self):
119 proc = subprocess.Popen(mat2_binary + ['--show', './tests/data/dirty.pdf'], 121 proc = subprocess.Popen(mat2_binary + ['--show', './tests/data/dirty.pdf'],
120 stdout=subprocess.PIPE) 122 stdout=subprocess.PIPE)
@@ -160,6 +162,7 @@ class TestGetMeta(unittest.TestCase):
160 proc = subprocess.Popen(mat2_binary + ['--show', './tests/data/dirty.flac'], 162 proc = subprocess.Popen(mat2_binary + ['--show', './tests/data/dirty.flac'],
161 stdout=subprocess.PIPE, bufsize=0) 163 stdout=subprocess.PIPE, bufsize=0)
162 stdout, _ = proc.communicate() 164 stdout, _ = proc.communicate()
165 self.assertIn(b'comments: Thank you for using MAT !', stdout)
163 self.assertIn(b'genre: Python', stdout) 166 self.assertIn(b'genre: Python', stdout)
164 self.assertIn(b'title: I am so', stdout) 167 self.assertIn(b'title: I am so', stdout)
165 168