'When receiving a message whose id is not in
L{DNSDatagramProtocol.liveMessages} or L{DNSDatagramProtocol.resends},
the message will be received by L{DNSDatagramProtocol.controller}.'

def test_receiveMessageNotInLiveMessages(self):

    message = dns.Message()
    message.id = 1
    message.answers = [dns.RRHeader(payload=dns.Record_A(address='1.2.3.4'))]
    self.proto.datagramReceived(message.toStr(), ('127.0.0.1', 21345))
    self.assertEqual(self.controller.messages[(-1)][0].toStr(), message.toStr())
