'L{H2Stream} objects can send a series of frames via C{writeSequence}.'

def test_writeSequenceForChannels(self):

    connection = H2Connection()
    connection.requestFactory = DelayedHTTPHandlerProxy
    (_, transport) = self.connectAndReceive(connection, self.getRequestHeaders, [])
    stream = connection.streams[1]
    request = stream._request.original
    request.setResponseCode(200)
    stream.writeSequence(['Hello', ',', 'world!'])
    request.finish()
    completionDeferred = connection._streamCleanupCallbacks[1]
    def validate(streamID):
        frames = framesFromBytes(transport.value())
        self.assertTrue(('END_STREAM' in frames[(-1)].flags))
        dataChunks = [f.data for f in frames if isinstance(f, hyperframe.frame.DataFrame)]
        self.assertEqual(dataChunks, ['Hello', ',', 'world!', ''])
    return completionDeferred.addCallback(validate)
