'Calling L{Request.registerProducer} when a producer is already
registered raises ValueError.'

def test_registerProducerTwiceFails(self):

    req = http.Request(DummyChannel(), False)
    req.registerProducer(DummyProducer(), True)
    self.assertRaises(ValueError, req.registerProducer, DummyProducer(), True)
