def test_noRangeHeaderSets200OK(self):
        """
        makeProducer when no Range header is set sets the responseCode on the
        request to 'OK'.
        """
        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'.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/web/test/test_static.py