def test_singleUnsatisfiableRangeSets416ReqestedRangeNotSatisfiable(self):
        """
        makeProducer sets the response code of the request to of 'Requested
        Range Not Satisfiable' when the Range header requests a single
        unsatisfiable byte range.
        """
        request = DummyRequest([])
        request.requestHeaders.addRawHeader(b'range', b'bytes=4-10')
        resource = self.makeResourceWithContent(b'abc')
        with resource.openForReading() as file:
            resource.makeProducer(request, file)
            self.assertEqual(
                http.REQUESTED_RANGE_NOT_SATISFIABLE, request.responseCode)

        makeProducer sets the response code of the request to of 'Requested
        Range Not Satisfiable' when the Range header requests a single
        unsatisfiable byte range.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/web/test/test_static.py