File: test_null_authorizer.py

package info (click to toggle)
python-globus-sdk 4.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,172 kB
  • sloc: python: 35,227; sh: 44; makefile: 35
file content (17 lines) | stat: -rw-r--r-- 468 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
from globus_sdk.authorizers import NullAuthorizer


def test_get_authorization_header():
    """
    Gets authorization header. Confirms None value.
    """
    authorizer = NullAuthorizer()
    assert authorizer.get_authorization_header() is None


def test_handle_missing_authorization():
    """
    Confirms that NullAuthorizer doesn't handle missing authorization
    """
    authorizer = NullAuthorizer()
    assert not authorizer.handle_missing_authorization()