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/dcerpc/__pycache__/registry.cpython-310.pyc
o

�/a��@s0dZddlmZddlmZGdd�de�ZdS)z Tests for samba.dcerpc.registry.�)�winreg)�RpcInterfaceTestCasecs<eZdZ�fdd�Zdd�Zdd�Zdd�Zd	d
�Z�ZS)�WinregTestscs*tt|���t�d|��|���|_dS)Nzncalrpc:)�superr�setUpr�get_loadparm�get_credentials�conn��self��	__class__��=/usr/lib/python3/dist-packages/samba/tests/dcerpc/registry.pyrs
�zWinregTests.setUpcCs|j�dtjtjB�S�N)r	�OpenHKLMr�KEY_QUERY_VALUE�KEY_ENUMERATE_SUB_KEYSr
rrr�get_hklms
�zWinregTests.get_hklmcCs&|j�dtjtjB�}|j�|�dSr)r	rrrr�CloseKey)r�handlerrr�	test_hklm#s
�zWinregTests.test_hklmcCs2|��}|j�|�}|�t|j�|j�|�dSr)rr	�
GetVersion�assertEqual�intr
r)rr�versionrrr�test_getversion(szWinregTests.test_getversioncCsH|j�dtjtjB�}|j�|t���}|�dt|��|j�	|�dS)N�	)
r	rrrr�QueryInfoKey�Stringr�lenr)rr�xrrr�test_getkeyinfo.s
�zWinregTests.test_getkeyinfo)	�__name__�
__module__�__qualname__rrrrr"�
__classcell__rrrrrsrN)�__doc__�samba.dcerpcr�samba.testsrrrrrr�<module>s