def _resolve_hardware_count(self):
        """
        Calculate amount of hardware resources.

        :return: Nothing, adds results to self._hardware_count
        """
        length = len([d for d in self._dut_requirements if d.get("type") in ["hardware",
                                                                             "serial", "mbed"]])
        self._hardware_count = length
def _resolve_hardware_count ( self ) : length = len ( [ d for d in self . _dut_requirements if d . get ( "type" ) in [ "hardware" , "serial" , "mbed" ] ] ) self . _hardware_count = length
Calculate amount of hardware resources.

        :return: Nothing, adds results to self._hardware_count