

@mock.patch.object(cloud_config.CloudConfig, 'get_endpoint')
def test_get_session_endpoint_provided(self, fake_get_endpoint):
    fake_get_endpoint.return_value = 'http://fake.url'
    self.assertEqual('http://fake.url', self.cloud.get_session_endpoint('image'))

dataset/ETHPy150Open openstack-infra/shade/shade/tests/unit/test_shade_operator.py TestShadeOperator.test_get_session_endpoint_provided/original