Esempio n. 1
0
    def system_info(self):

        root = {}
        root['os_code'] = systeminfo.code()
        root['os_string'] = systeminfo.name()
        root['version'] = systeminfo.version()
        root['bit_type'] = systeminfo.bit_type()
        root['computer_name'] = systeminfo.computer_name()
        root['host_name'] = ''  # TODO(urgent): Implement

        logger.debug("System info sent: {0}".format(json.dumps(root)))

        return root
Esempio n. 2
0
    def system_info(self):

        root = {}
        root['os_code'] = systeminfo.code()
        root['os_string'] = systeminfo.name()
        root['version'] = systeminfo.version()
        root['bit_type'] = systeminfo.bit_type()
        root['computer_name'] = systeminfo.computer_name()
        root['host_name'] = ''  # TODO(urgent): Implement

        logger.debug("System info sent: {0}".format(json.dumps(root)))

        return root
Esempio n. 3
0
def test_os_version():
    """ Test the os version.
    """

    eq_(systeminfo.version(), platform.release(), "os version does "
        "not match.")
Esempio n. 4
0
def test_os_version():
    """ Test the os version.
    """

    eq_(systeminfo.version(), platform.release(), "os version does "
                                                  "not match.")