File: //lib/python3/dist-packages/samba/tests/__pycache__/auth.cpython-310.pyc
o
�/a � @ sD d Z ddlmZ ddlZG dd� dejj�ZG dd� dejj�ZdS )z�Tests for the Auth Python bindings.
Note that this just tests the bindings work. It does not intend to test
the functionality, that's already done in other tests.
� )�authNc �D e Zd Z� fdd�Zdd� Zdd� Zdd� Zd d
� Zdd� Z� Z S )
�AuthSystemSessionTestsc s( t t| ��� t�� | _tj�� | _d S �N) �superr �setUpr �system_session�samba�tests�env_loadparm�lp��self�� __class__� �2/usr/lib/python3/dist-packages/samba/tests/auth.pyr s
zAuthSystemSessionTests.setUpc C �^ | � t| jd�� | � t| jd�� | � t| jd�� | � t| jd�� | � t| jd�� d S �N�credentials�info�security_token�session_key�torture)�
assertTrue�hasattrr r
r r r �test_system_session_attrs# �
z0AuthSystemSessionTests.test_system_session_attrsc C sL | � | jj�� � | �| jj�� � | �| jj�� | j� d��
� d � d S )Nznetbios name�$)�assertIsNoner r �get_bind_dn�assertIsNotNone�get_password�assertEqual�get_usernamer �get�upperr
r r r �test_system_session_credentials* s
�z6AuthSystemSessionTests.test_system_session_credentialsc C s: | � | jjjd� | � | jjjd� | � | jjjd� d S )N�SystemzNT AUTHORITY�SYSTEM)r# r r � full_name�domain_name�account_namer
r r r �test_system_session_info0 � z/AuthSystemSessionTests.test_system_session_infoc C s d}| � | jj|� d S )Ns )r# r r )r �expectedr r r �test_system_session_session_key5 s z6AuthSystemSessionTests.test_system_session_session_keyc C s( | � | jj�� � | �| jj�� � d S r )r r r � is_system�assertFalse�is_anonymousr
r r r �"test_system_session_security_token9 s z9AuthSystemSessionTests.test_system_session_security_token)
�__name__�
__module__�__qualname__r r r'