'Store the received data and write it back with a tilde appended.
The tilde is appended so that the tests can verify that we processed
the data.'

def dataReceived(self, data):

    self.data += data
    self.transport.write((data + '~'))
