def test_noRangeHeaderGivesNoRangeStaticProducer(self):
    '\n        makeProducer when no Range header is set returns an instance of\n        NoRangeStaticProducer.\n        '
    resource = self.makeResourceWithContent(b'')
    request = DummyRequest([])
    with resource.openForReading() as file:
        producer = resource.makeProducer(request, file)
        self.assertIsInstance(producer, static.NoRangeStaticProducer)
makeProducer when no Range header is set returns an instance of
NoRangeStaticProducer.
def test_noRangeHeaderGivesNoRangeStaticProducer(self):
    '\n        makeProducer when no Range header is set returns an instance of\n        NoRangeStaticProducer.\n        '
    resource = self.makeResourceWithContent(b)
    request = DummyRequest([])
    with resource.openForReading() as file:
        producer = resource.makeProducer(request, file)
        self.assertIsInstance(producer, static.NoRangeStaticProducer)