From 0e977c98649b4ed4533a7700fbc5fea6895bfe71 Mon Sep 17 00:00:00 2001 From: Adam Hupp Date: Fri, 24 Jan 2020 21:20:11 -0800 Subject: Expose magic_version as magic.version(), which returns an integer representing the version number. re: https://github.com/ahupp/python-magic/issues/204 --- test/test.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test') diff --git a/test/test.py b/test/test.py index c6ba522..d067b15 100755 --- a/test/test.py +++ b/test/test.py @@ -11,6 +11,9 @@ import sys class MagicTest(unittest.TestCase): TESTDATA_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'testdata') + def test_version(self): + self.assertTrue(magic.version() > 0) + def test_fs_encoding(self): self.assertEqual('utf-8', sys.getfilesystemencoding().lower()) -- cgit v1.2.1