summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorjvoisin2018-10-18 20:29:50 +0200
committerjvoisin2018-10-18 20:29:50 +0200
commitd4c050a738e20d6ad41fa01da020e707674300a2 (patch)
treeb59267c8befd2afe3b416c67ea4ab0c04ac029e2 /tests
parentf04d4b28fcf1a08632a0cf26a5f6faced2f04e8b (diff)
wtf python
Diffstat (limited to 'tests')
-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