def test_singleUnsatisfiableRangeSets416ReqestedRangeNotSatisfiable(self):
    "\n        makeProducer sets the response code of the request to of 'Requested\n        Range Not Satisfiable' when the Range header requests a single\n        unsatisfiable byte range.\n        "
    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.
def test_singleUnsatisfiableRangeSets416ReqestedRangeNotSatisfiable(self):
    "\n        makeProducer sets the response code of the request to of 'Requested\n        Range Not Satisfiable' when the Range header requests a single\n        unsatisfiable byte range.\n        "
    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)