def test_GET_with_storlets_and_storlet_range(self):
        target = '/v1/AUTH_a/c/o'
        self.app.register('GET', target, HTTPOk, body='FAKE APP')

        def get(path):
            req_range = 'bytes=1-6'
            req = Request.blank(
                path, environ={'REQUEST_METHOD': 'GET'},
                headers={'X-Run-Storlet': 'Storlet-1.0.jar',
                         'X-Storlet-Range': req_range})
            app = self.get_app(self.app, self.conf)
            resp = app(req.environ, self.start_response)
            self.assertEqual('200 OK', self.got_statuses[-1])
            self.assertEqual(resp.read(), 'AKE AP')

            resp_headers = dict(self.got_headers[-1])
            self.assertFalse(resp_headers in 'Content-Range')
            self.assertEqual(resp_headers['Storlet-Input-Range'],
                             'bytes 1-6/8')

            raw_req = self.app.get_calls('GET', path)[0]
            for key in ['Range', 'X-Storlet-Range']:
                self.assertEqual(raw_req[2][key], req_range)

        with storlet_enabled():
            get(target)
dataset/ETHPy150Open openstack/storlets/tests/unit/swift/storlet_middleware/test_storlet_handler.py/TestStorletMiddlewareProxy.test_GET_with_storlets_and_storlet_range/swapped operands of `in`