

def test_token_and_endpoint(self, mock_ksclient):
    plugin = auth.KeystoneAuthPlugin(token='fake-token', endpoint='http://solum')
    cs = client.HTTPClient(auth_plugin=plugin)
    cs.authenticate()
    (token, endpoint) = cs.auth_plugin.token_and_endpoint('fake-endpoint-type', 'fake-service-type')
    self.assertEqual('fake-token', token)
    self.assertEqual('http://solum', endpoint)

dataset/ETHPy150Open openstack/python-solumclient/solumclient/tests/common/test_auth.py KeystoneAuthPluginTokenTest.test_token_and_endpoint/original