add test for querying the operating system info
This commit is contained in:
@ -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'])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user