def test_noRangeHeaderSets200OK(self):
    "\n        makeProducer when no Range header is set sets the responseCode on the\n        request to 'OK'.\n        "
    resource = self.makeResourceWithContent(b'')
    request = DummyRequest([])
    with resource.openForReading() as file:
        resource.makeProducer(request, file)
        self.assertEqual(http.OK, request.responseCode)
makeProducer when no Range header is set sets the responseCode on the
request to 'OK'.
def test_noRangeHeaderSets200OK(self):
    "\n        makeProducer when no Range header is set sets the responseCode on the\n        request to 'OK'.\n        "
    resource = self.makeResourceWithContent(b)
    request = DummyRequest([])
    with resource.openForReading() as file:
        resource.makeProducer(request, file)
        self.assertEqual(http.OK, request.responseCode)