def METHOD_NAME(self):
    request_object = WhoHasObject()
    request_object.objectIdentifier = ("binaryInput", 12)
    request = WhoHasRequest(object=request_object)
    apdu = APDU()
    request.encode(apdu)
    pdu = PDU()
    apdu.encode(pdu)
    buf_size = 1024
    s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
    s.sendto(pdu.pduData, self.address)
    data = s.recvfrom(buf_size)
    s.close()
    received_data = data[0]
    expected = IHaveRequest()
    expected.pduDestination = GlobalBroadcast()
    expected.deviceIdentifier = 36113
    expected.objectIdentifier = 12
    expected.objectName = "BI 01"
    exp_apdu = APDU()
    expected.encode(exp_apdu)
    exp_pdu = PDU()
    exp_apdu.encode(exp_pdu)
    self.assertEqual(exp_pdu.pduData, received_data)