

@mock.patch.object(cloud_config.CloudConfig, 'get_session')
def test_get_session_endpoint_identity(self, get_session_mock):
    session_mock = mock.Mock()
    get_session_mock.return_value = session_mock
    self.cloud.get_session_endpoint('identity')
    session_mock.get_endpoint.assert_called_with(interface=ksa_plugin.AUTH_INTERFACE)

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