'The L{H2Stream} object forbids registering two producers.'

def test_cannotRegisterTwoProducers(self):

    connection = H2Connection()
    connection.requestFactory = DummyProducerHandlerProxy
    self.connectAndReceive(connection, self.getRequestHeaders, [])
    stream = connection.streams[1]
    request = stream._request.original
    self.assertRaises(ValueError, stream.registerProducer, request, True)
