# Class e.p.h.h.ProtocolTest(object):

Part of elisa.plugins.hal.hal View In Hierarchy

Known subclasses: elisa.plugins.hal.hal.IpodProtocolTest

Class to test if a HALDevice can be considered to be of a protocol.

Instance Variables | protocol | the protocol for which this instance tests (type: `str` )
| hal_properties | properties to test (type: `tuple` )
| ModelClass | the model type associated with the protocol (type: `classobj` )

Line # | Kind | Name | Docs
--- | --- | --- | ---
60 | Method | __init__ | Undocumented
68 | Method | has_protocol | Returns whether `hal_device` represents a device of

def __init__(self, protocol, hal_properties, model_class=DeviceModel):
overridden in elisa.plugins.hal.hal.IpodProtocolTest
Undocumented
def has_protocol(self, hal_device):
overridden in elisa.plugins.hal.hal.IpodProtocolTest
Returns whether `hal_device` represents a device of self.protocol.