def test_opt_url_netloc(self):
        req, _ = app.op['getPetById'](petId=100)
        req.prepare()

        req._patch({SwaggerRequest.opt_url_netloc: 'localhost:9001'})
        self.assertEqual(req.url, 'http://localhost:9001/api/pet/100')
        self.assertEqual(req.path, '/api/pet/100')
Retrieves the subset of items from between the specified indices.
dataset/ETHPy150Open mission-liao/pyswagger/pyswagger/tests/v1_2/test_io.py/SwaggerRequest_Pet_TestCase.test_opt_url_netloc--crossover with--dataset/ETHPy150Open sklearn-theano/sklearn-theano/sklearn_theano/externals/google/protobuf/internal/containers.py/RepeatedCompositeFieldContainer.__getslice__