'If two producers are registered on a L{HTTPChannel} without the first
being unregistered, a L{RuntimeError} is thrown.'

def test_HTTPChannelRejectsMultipleProducers(self):

    (channel, transport) = self.buildChannelAndTransport(StringTransport(), DummyHTTPHandler)
    channel.registerProducer(DummyProducer(), True)
    self.assertRaises(RuntimeError, channel.registerProducer, DummyProducer(), True)
