diff options
| author | jvoisin | 2021-04-24 17:26:38 +0200 |
|---|---|---|
| committer | jvoisin | 2021-04-24 17:26:38 +0200 |
| commit | 85c08c5b68301d655a88dd78f2a5e790009a5eb6 (patch) | |
| tree | 23d1c20fcecbadde3c7dc711ca4e0b5074c54649 /tests/test_libmat2.py | |
| parent | c5841a241dcf737599422e34a99d8001f974d13a (diff) | |
Add support for AIFF files
This should close #151
Diffstat (limited to 'tests/test_libmat2.py')
| -rw-r--r-- | tests/test_libmat2.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/test_libmat2.py b/tests/test_libmat2.py index a6c3a9a..5b9ad59 100644 --- a/tests/test_libmat2.py +++ b/tests/test_libmat2.py | |||
| @@ -230,6 +230,11 @@ class TestGetMeta(unittest.TestCase): | |||
| 230 | p = images.SVGParser('./tests/data/weird.svg') | 230 | p = images.SVGParser('./tests/data/weird.svg') |
| 231 | self.assertEqual(p.get_meta()['Xmlns'], 'http://www.w3.org/1337/svg') | 231 | self.assertEqual(p.get_meta()['Xmlns'], 'http://www.w3.org/1337/svg') |
| 232 | 232 | ||
| 233 | def test_aiff(self): | ||
| 234 | p = audio.AIFFParser('./tests/data/dirty.aiff') | ||
| 235 | meta = p.get_meta() | ||
| 236 | self.assertEqual(meta['Name'], 'I am so') | ||
| 237 | |||
| 233 | 238 | ||
| 234 | class TestRemovingThumbnails(unittest.TestCase): | 239 | class TestRemovingThumbnails(unittest.TestCase): |
| 235 | def test_odt(self): | 240 | def test_odt(self): |
| @@ -312,6 +317,12 @@ class TestCleaning(unittest.TestCase): | |||
| 312 | 'meta': {'Comment': 'Zomg, a comment!'}, | 317 | 'meta': {'Comment': 'Zomg, a comment!'}, |
| 313 | 'expected_meta': {}, | 318 | 'expected_meta': {}, |
| 314 | }, { | 319 | }, { |
| 320 | 'name': 'aiff', | ||
| 321 | 'parser': audio.AIFFParser, | ||
| 322 | 'meta': {'Annotation': 'Thank you for using MAT !'}, | ||
| 323 | 'expected_meta': {}, | ||
| 324 | }, | ||
| 325 | { | ||
| 315 | 'name': 'mp3', | 326 | 'name': 'mp3', |
| 316 | 'parser': audio.MP3Parser, | 327 | 'parser': audio.MP3Parser, |
| 317 | 'meta': {'TXXX:I am a': 'various comment'}, | 328 | 'meta': {'TXXX:I am a': 'various comment'}, |
