'makeProducer when the Range header requests a single, satisfiable byte
range sets the response code on the request to \'Partial Content\'.'

def test_singleRangeSets206PartialContent(self):

    request = DummyRequest([])
    request.requestHeaders.addRawHeader('range', 'bytes=1-3')
    resource = self.makeResourceWithContent('abcdef')
    with resource.openForReading() as file:
        resource.makeProducer(request, file)
        self.assertEqual(http.PARTIAL_CONTENT, request.responseCode)
