

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

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