'Compares two contexts. Two contexts are equal if they
have the same device type and device id.'

def __eq__(self, other):

    return (isinstance(other, Context) and (self.device_typeid == other.device_typeid) and (self.device_id == other.device_id))
