'In stringReceived, recvd contains the remaining data that was passed to
dataReceived that was not part of the current message.'

def test_recvdContainsRemainingData(self):

    result = []
    r = self.getProtocol()
    def stringReceived(receivedString):
        result.append(r.recvd)
    r.stringReceived = stringReceived
    completeMessage = (struct.pack(r.structFormat, 5) + ('a' * 5))
    incompleteMessage = (struct.pack(r.structFormat, 5) + ('b' * 4))
    r.dataReceived((completeMessage + incompleteMessage))
    self.assertEqual(result, [incompleteMessage])
