Ejemplo n.º 1
0
def test_hardware():
    """ Test hardware does not return empty string or empty list.
    """

    hardware = systeminfo.hardware()

    assert hardware['cpu'] != [], "Hardware is returning empty CPU."
    assert hardware['memory'] != '', "Hardware is returning empty memory."
    assert hardware['display'] != [], "Hardware is returning empty display."
    assert hardware['nic'] != [], "Hardware is returning empty nic."
    assert hardware['storage'] != [], "Hardware is returning empty storage."
Ejemplo n.º 2
0
def test_hardware():
    """ Test hardware does not return empty string or empty list.
    """

    hardware = systeminfo.hardware()

    assert hardware['cpu'] != [], "Hardware is returning empty CPU."
    assert hardware['memory'] != '', "Hardware is returning empty memory."
    assert hardware['display'] != [], "Hardware is returning empty display."
    assert hardware['nic'] != [], "Hardware is returning empty nic."
    assert hardware['storage'] != [], "Hardware is returning empty storage."
Ejemplo n.º 3
0
    def hardware_info(self):
        hardware_info = systeminfo.hardware()

        logger.debug("Hardware info sent: {0}".format(hardware_info))

        return hardware_info
Ejemplo n.º 4
0
    def hardware_info(self):
        hardware_info = systeminfo.hardware()

        logger.debug("Hardware info sent: {0}".format(hardware_info))

        return hardware_info