'In stringReceived, if recvd is changed, messages should be parsed from
it rather than the input to dataReceived.'

def test_recvdChanged(self):

    r = self.getProtocol()
    result = []
    payloadC = ('c' * 5)
    messageC = self.makeMessage(r, payloadC)
    def stringReceived(receivedString):
        if (not result):
            r.recvd = messageC
        result.append(receivedString)
    r.stringReceived = stringReceived
    payloadA = ('a' * 5)
    payloadB = ('b' * 5)
    messageA = self.makeMessage(r, payloadA)
    messageB = self.makeMessage(r, payloadB)
    r.dataReceived((messageA + messageB))
    self.assertEqual(result, [payloadA, payloadC])
