summaryrefslogtreecommitdiff
path: root/test/test.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test.py')
-rwxr-xr-xtest/test.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/test.py b/test/test.py
index 0f3aac2..3d835c1 100755
--- a/test/test.py
+++ b/test/test.py
@@ -148,5 +148,10 @@ class MagicTest(unittest.TestCase):
m.setparam(magic.MAGIC_PARAM_INDIR_MAX, 1)
self.assertEqual(m.getparam(magic.MAGIC_PARAM_INDIR_MAX), 1)
+ def test_name_count(self):
+ m = magic.Magic()
+ with open('testdata/python-3.7.2-python-magic-0.4.15.jpg', 'rb') as f:
+ m.from_buffer(f.read())
+
if __name__ == '__main__':
unittest.main()