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

def test_receiveMessageNotInLiveMessages(self):

    message = dns.Message()
    message.id = 1
    message.answers = [dns.RRHeader(payload=dns.Record_A(address='1.2.3.4'))]
    string = message.toStr()
    string = (struct.pack('!H', len(string)) + string)
    self.proto.dataReceived(string)
    self.assertEqual(self.controller.messages[(-1)][0].toStr(), message.toStr())
