'Calling L{Request.registerProducer} with an IPullProducer when the
request is not queued registers the producer as a pull producer on the
request\'s transport.'

def test_registerProducerWhenNotQueuedRegistersPullProducer(self):

    req = http.Request(DummyChannel(), False)
    producer = DummyProducer()
    req.registerProducer(producer, False)
    self.assertEqual([(producer, False)], req.transport.producers)
