diff options
Diffstat (limited to 'tests/test_libmat2.py')
| -rw-r--r-- | tests/test_libmat2.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/test_libmat2.py b/tests/test_libmat2.py index 1925201..332a5a3 100644 --- a/tests/test_libmat2.py +++ b/tests/test_libmat2.py | |||
| @@ -113,6 +113,11 @@ class TestGetMeta(unittest.TestCase): | |||
| 113 | meta = p.get_meta() | 113 | meta = p.get_meta() |
| 114 | self.assertEqual(meta['Comment'], 'Created with GIMP') | 114 | self.assertEqual(meta['Comment'], 'Created with GIMP') |
| 115 | 115 | ||
| 116 | def test_webp(self): | ||
| 117 | p = images.WEBPParser('./tests/data/dirty.webp') | ||
| 118 | meta = p.get_meta() | ||
| 119 | self.assertEqual(meta['Warning'], '[minor] Improper EXIF header') | ||
| 120 | |||
| 116 | def test_ppm(self): | 121 | def test_ppm(self): |
| 117 | p = images.PPMParser('./tests/data/dirty.ppm') | 122 | p = images.PPMParser('./tests/data/dirty.ppm') |
| 118 | meta = p.get_meta() | 123 | meta = p.get_meta() |
| @@ -334,6 +339,11 @@ class TestCleaning(unittest.TestCase): | |||
| 334 | 'meta': {'Comment': 'Created with GIMP'}, | 339 | 'meta': {'Comment': 'Created with GIMP'}, |
| 335 | 'expected_meta': {}, | 340 | 'expected_meta': {}, |
| 336 | }, { | 341 | }, { |
| 342 | 'name': 'webp', | ||
| 343 | 'parser': images.WEBPParser, | ||
| 344 | 'meta': {'Warning': '[minor] Improper EXIF header'}, | ||
| 345 | 'expected_meta': {}, | ||
| 346 | }, { | ||
| 337 | 'name': 'wav', | 347 | 'name': 'wav', |
| 338 | 'parser': audio.WAVParser, | 348 | 'parser': audio.WAVParser, |
| 339 | 'meta': {'Comment': 'Zomg, a comment!'}, | 349 | 'meta': {'Comment': 'Zomg, a comment!'}, |
