Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
ibm-cloud-sdk-core / test / test_no_auth_authenticator.py
Size: Mime:
# pylint: disable=missing-docstring

from ibm_cloud_sdk_core.authenticators import NoAuthAuthenticator, Authenticator


def test_no_auth_authenticator():
    authenticator = NoAuthAuthenticator()
    assert authenticator is not None
    assert authenticator.authentication_type() == Authenticator.AUTHTYPE_NOAUTH

    authenticator.validate()

    request = {'headers': {}}
    authenticator.authenticate(request)
    assert not request['headers']