'Test wire.Echo protocol: send some data and check it send it back.'

def test_echo(self):

    t = proto_helpers.StringTransport()
    a = wire.Echo()
    a.makeConnection(t)
    a.dataReceived('hello')
    a.dataReceived('world')
    a.dataReceived('how')
    a.dataReceived('are')
    a.dataReceived('you')
    self.assertEqual(t.value(), 'helloworldhowareyou')
