File: //lib/python3/dist-packages/samba/tests/__pycache__/pam_winbind_chauthtok.cpython-310.pyc
o
�/a9 � @ s0 d dl Zd dlZd dlZG dd� dejj�ZdS )� Nc @ s e Zd Zdd� ZdS )�PamChauthtokTestsc
C s� t jd }t jd }t jd }t jd }|dkrd||f }nd| }d}t�tj|�}zt�|d |g|||g�}W n tjyM } ztt| ���d } ~ ww | � |d u� d S )
N�DOMAIN�USERNAME�PASSWORD�NEWPASSWORD� z%s/%sz%sr �samba)
�os�environ� pypamtest�TestCase�PAMTEST_CHAUTHTOK�run_pamtest�PamTestError�AssertionError�str�
assertTrue)
�self�domain�username�password�newpassword�
unix_username�expected_rc�tc�res�e� r �C/usr/lib/python3/dist-packages/samba/tests/pam_winbind_chauthtok.py�test_chauthtok s
��z PamChauthtokTests.test_chauthtokN)�__name__�
__module__�__qualname__r r r r r r s r )�samba.testsr r r �testsr r r r r r �<module> s