add test for querying the operating system info

This commit is contained in:
Axel Kohlmeyer
2021-05-11 15:24:04 -04:00
parent fbe9240cf3
commit 8f917b509b

View File

@ -33,6 +33,13 @@ class PythonCapabilities(unittest.TestCase):
def test_version(self):
self.assertGreaterEqual(self.lmp.version(), 20200824)
def test_os_info(self):
import platform
system = platform.system()
osinfo = self.lmp.get_os_info()
self.assertEqual(osinfo.find(system),0)
def test_has_gzip_support(self):
self.assertEqual(self.lmp.has_gzip_support, self.cmake_cache['WITH_GZIP'])