def test_no_auth_authenticator():
    authenticator = NoAuthAuthenticator()
    assert authenticator is not None
    assert authenticator.authentication_type == 'noAuth'

    authenticator.validate()

    request = {'headers': {}}
    authenticator.authenticate(request)
    assert request['headers'] == {}
Beispiel #2
0
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']