Module ImportFrom alias Import alias Import alias ImportFrom alias ImportFrom alias FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Dict FunctionDef arguments args NameParam NameParam defaults body Return TupleLoad Str Dict Str Str NameLoad NameLoad NameLoad decorator_list Expr Call AttributeLoad NameLoad attr Str NameLoad Assert UnaryOpNot Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Str keyword NameLoad Assert CompareIsNot NameLoad NameLoad Assert CompareEq AttributeLoad NameLoad attr Str Assert Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str attr decorator_list AttributeLoad AttributeLoad NameLoad attr attr FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Dict FunctionDef arguments args NameParam NameParam defaults body Return TupleLoad Str Dict Str Str NameLoad NameLoad NameLoad decorator_list Expr Call AttributeLoad NameLoad attr Str NameLoad Assert UnaryOpNot Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str attr Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Str keyword NameLoad Assert CompareIs NameLoad NameLoad Assert UnaryOpNot Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Dict FunctionDef arguments args NameParam NameParam defaults body Return TupleLoad Str Dict Str Str NameLoad NameLoad NameLoad decorator_list Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Str keyword NameLoad Assert CompareIsNot NameLoad NameLoad Assert CompareEq AttributeLoad NameLoad attr Str Assert CompareEq NameLoad NameLoad decorator_list AttributeLoad AttributeLoad NameLoad attr attr FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Dict FunctionDef arguments args NameParam NameParam defaults body Return TupleLoad NameLoad Dict NameLoad decorator_list Expr Call AttributeLoad NameLoad attr Str NameLoad Assert UnaryOpNot Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Str keyword NameLoad Assert CompareIs NameLoad NameLoad Assert UnaryOpNot Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str attr decorator_list AttributeLoad AttributeLoad NameLoad attr attr
N/A __future__ absolute_import N/A sys N/A pytest django.test RequestFactory django_cas_ng backends test_backend_authentication_creating_a_user N/A N/A monkeypatch django_user_model N/A N/A N/A 
    Test the case where CAS authentication is creating a new user.
     N/A factory N/A RequestFactory N/A request N/A N/A factory get /login/ N/A N/A request session N/A mock_verify N/A N/A ticket service N/A N/A N/A N/A test@example.com N/A ticket service ticket service None N/A N/A N/A N/A monkeypatch setattr cas.CASClientV2.verify_ticket mock_verify N/A N/A N/A N/A N/A N/A N/A django_user_model objects filter username test@example.com exists N/A backend N/A N/A backends CASBackend N/A user N/A N/A backend authenticate ticket fake-ticket service fake-service request request N/A N/A user None N/A N/A N/A user username test@example.com N/A N/A N/A N/A N/A N/A django_user_model objects filter username test@example.com exists N/A N/A N/A pytest mark django_db test_backend_authentication_do_not_create_user N/A N/A monkeypatch django_user_model settings N/A N/A N/A 
    Test the case where CAS authentication is creating a new user.
     N/A factory N/A RequestFactory N/A request N/A N/A factory get /login/ N/A N/A request session N/A mock_verify N/A N/A ticket service N/A N/A N/A N/A test@example.com N/A ticket service ticket service None N/A N/A N/A N/A monkeypatch setattr cas.CASClientV2.verify_ticket mock_verify N/A N/A N/A N/A N/A N/A N/A django_user_model objects filter username test@example.com exists N/A N/A settings CAS_CREATE_USER False N/A backend N/A N/A backends CASBackend N/A user N/A N/A backend authenticate ticket fake-ticket service fake-service request request N/A N/A user None N/A N/A N/A N/A N/A N/A N/A django_user_model objects filter username test@example.com exists N/A test_backend_for_existing_user N/A N/A monkeypatch django_user_model N/A N/A N/A 
    Test the case where CAS authenticates an existing user.
     N/A factory N/A RequestFactory N/A request N/A N/A factory get /login/ N/A N/A request session N/A mock_verify N/A N/A ticket service N/A N/A N/A N/A test@example.com N/A ticket service ticket service None N/A N/A N/A N/A monkeypatch setattr cas.CASClientV2.verify_ticket mock_verify N/A existing_user N/A N/A N/A django_user_model objects create_user test@example.com N/A backend N/A N/A backends CASBackend N/A user N/A N/A backend authenticate ticket fake-ticket service fake-service request request N/A N/A user None N/A N/A N/A user username test@example.com N/A N/A user existing_user N/A N/A N/A pytest mark django_db test_backend_for_failed_auth N/A N/A monkeypatch django_user_model N/A N/A N/A 
    Test CAS authentication failure.
     N/A factory N/A RequestFactory N/A request N/A N/A factory get /login/ N/A N/A request session N/A mock_verify N/A N/A ticket service N/A N/A N/A N/A None N/A None N/A N/A N/A N/A monkeypatch setattr cas.CASClientV2.verify_ticket mock_verify N/A N/A N/A N/A N/A N/A N/A django_user_model objects filter username test@example.com exists N/A backend N/A N/A backends CASBackend N/A user N/A N/A backend authenticate ticket fake-ticket service fake-service request request N/A N/A user None N/A N/A N/A N/A N/A N/A N/A django_user_model objects filter username test@example.com exists N/A N/A N/A pytest mark django_db