
    b                         d Z ddlmZ ddlmZ ddlZdD ]QZej                            ej        	                    e
          e          Zej                            e          r nR G d de          ZdS )zTests for samba.samba3.    )IdmapDatabase)TestCaseN)z../../../../../testdata/samba3z../../../../testdata/samba3c                   L     e Zd Z fdZd Zd Zd Zd Zd Zd Z	 fdZ
 xZS )	IdmapDbTestCasec                     t          t          |                                            t          t          j                            t          d                    | _        d S )Nwinbindd_idmap)	superr   setUpr   ospathjoinDATADIRidmapdbself	__class__s    7/usr/lib/python3/dist-packages/samba/tests/s3idmapdb.pyr
   zIdmapDbTestCase.setUp    sO    ot$$**,,,$RW\\'2B&D &D E E    c                 `    |                      d| j                                                   d S )Ni'  )assertEqualr   get_user_hwmr   s    r   test_user_hwmzIdmapDbTestCase.test_user_hwm%   s,     9 9 ; ;<<<<<r   c                 `    |                      d| j                                                   d S )Ni'  )r   r   get_group_hwmr   s    r   test_group_hwmzIdmapDbTestCase.test_group_hwm(   s,     : : < <=====r   c           	          |                      dt          t          | j                                                                       d S )N   )r   lenlistr   uidsr   s    r   	test_uidszIdmapDbTestCase.test_uids+   <    CT\%6%6%8%8 9 9::;;;;;r   c           	          |                      dt          t          | j                                                                       d S )N   )r   r   r    r   gidsr   s    r   	test_gidszIdmapDbTestCase.test_gids.   r#   r   c                 b    |                      d| j                            d                     d S )Ns*   S-1-5-21-58189338-3053988021-627566699-501i  )r   r   get_user_sidr   s    r   test_get_user_sidz!IdmapDbTestCase.test_get_user_sid1   s0    FHaHabgHhHhiiiiir   c                 b    |                      d| j                            d                     d S )Ns.   S-1-5-21-2447931902-1787058256-3961074038-3007i'  )r   r   get_group_sidr   s    r   test_get_group_sidz"IdmapDbTestCase.test_get_group_sid4   s0    JDLLfLfglLmLmnnnnnr   c                     | j                                          t          t          |                                            d S )N)r   closer	   r   tearDownr   s    r   r0   zIdmapDbTestCase.tearDown7   s9    ot$$--/////r   )__name__
__module____qualname__r
   r   r   r"   r'   r*   r-   r0   __classcell__)r   s   @r   r   r      s        E E E E E
= = => > >< < << < <j j jo o o0 0 0 0 0 0 0 0 0r   r   )__doc__samba.samba3r   samba.testsr   r   pr   r   dirname__file__r   existsr    r   r   <module>r=      s   $   & & & & & &             					J  Agll27??844a88G	w~~g 0 0 0 0 0h 0 0 0 0 0r   