diff options
| author | jvoisin | 2018-07-06 00:49:17 +0200 |
|---|---|---|
| committer | jvoisin | 2018-07-06 00:49:17 +0200 |
| commit | 3d80f9752481b8967616698bb3c0c014e6f1527a (patch) | |
| tree | 65dca424d2826daf0214c4e3a731c7a741ee1bc7 /tests/test_libmat2.py | |
| parent | 53271495f74bde7fde2329b7c5c938654a36b7dc (diff) | |
Simplify BMP handling
Diffstat (limited to 'tests/test_libmat2.py')
| -rw-r--r-- | tests/test_libmat2.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_libmat2.py b/tests/test_libmat2.py index 90f37a8..512efe8 100644 --- a/tests/test_libmat2.py +++ b/tests/test_libmat2.py | |||
| @@ -417,7 +417,7 @@ class TestCleaning(unittest.TestCase): | |||
| 417 | 417 | ||
| 418 | def test_bmp(self): | 418 | def test_bmp(self): |
| 419 | shutil.copy('./tests/data/dirty.bmp', './tests/data/clean.bmp') | 419 | shutil.copy('./tests/data/dirty.bmp', './tests/data/clean.bmp') |
| 420 | p = images.BMPParser('./tests/data/clean.bmp') | 420 | p = harmless.HarmlessParser('./tests/data/clean.bmp') |
| 421 | 421 | ||
| 422 | meta = p.get_meta() | 422 | meta = p.get_meta() |
| 423 | self.assertEqual(meta, {}) # bmp has no meta :) | 423 | self.assertEqual(meta, {}) # bmp has no meta :) |
| @@ -425,7 +425,7 @@ class TestCleaning(unittest.TestCase): | |||
| 425 | ret = p.remove_all() | 425 | ret = p.remove_all() |
| 426 | self.assertTrue(ret) | 426 | self.assertTrue(ret) |
| 427 | 427 | ||
| 428 | p = images.BMPParser('./tests/data/clean.cleaned.bmp') | 428 | p = harmless.HarmlessParser('./tests/data/clean.cleaned.bmp') |
| 429 | self.assertEqual(p.get_meta(), {}) | 429 | self.assertEqual(p.get_meta(), {}) |
| 430 | 430 | ||
| 431 | os.remove('./tests/data/clean.bmp') | 431 | os.remove('./tests/data/clean.bmp') |
