HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/samba/tests/__pycache__/s3idmapdb.cpython-310.pyc
o

�/a��@shdZddlmZddlmZddlZdD]Zej�ej�	e
�e�Zej�e�r)nqGdd�de�Z
dS)zTests for samba.samba3.�)�
IdmapDatabase)�TestCaseN)z../../../../../testdata/samba3z../../../../testdata/samba3csXeZdZ�fdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
d�Z	�fdd�Z
�ZS)�IdmapDbTestCasecs&tt|���ttj�td��|_dS)N�winbindd_idmap)	�superr�setUpr�os�path�join�DATADIR�idmapdb��self��	__class__��7/usr/lib/python3/dist-packages/samba/tests/s3idmapdb.pyr s
�zIdmapDbTestCase.setUpcC�|�d|j���dS)Ni')�assertEqualr�get_user_hwmr
rrr�
test_user_hwm%�zIdmapDbTestCase.test_user_hwmcCr)Ni')rr�
get_group_hwmr
rrr�test_group_hwm(rzIdmapDbTestCase.test_group_hwmcC�|�dtt|j�����dS)N�)r�len�listr�uidsr
rrr�	test_uids+�zIdmapDbTestCase.test_uidscCr)N�)rrrr�gidsr
rrr�	test_gids.r zIdmapDbTestCase.test_gidscC�|�d|j�d��dS)Ns*S-1-5-21-58189338-3053988021-627566699-501i��)rr�get_user_sidr
rrr�test_get_user_sid1�z!IdmapDbTestCase.test_get_user_sidcCr$)Ns.S-1-5-21-2447931902-1787058256-3961074038-3007i')rr�
get_group_sidr
rrr�test_get_group_sid4r'z"IdmapDbTestCase.test_get_group_sidcs|j��tt|���dS)N)r�closerr�tearDownr
rrrr+7s
zIdmapDbTestCase.tearDown)�__name__�
__module__�__qualname__rrrrr#r&r)r+�
__classcell__rrrrrsr)�__doc__�samba.samba3r�samba.testsrr�pr	r
�dirname�__file__r�existsrrrrr�<module>s�