Current Dir: /snap/core22/2437/usr/lib/python3/dist-packages/probert/tests/__pycache__/

[FILE] fakes.cpython-310.pyc [ edit | delete | rename ]
[FILE] helpers.cpython-310.pyc [ edit | delete | rename ]
[FILE] test_dasd.cpython-310.pyc [ edit | delete | rename ]
[FILE] test_lvm.cpython-310.pyc [ edit | delete | rename ]
[FILE] test_multipath.cpython-310.pyc [ edit | delete | rename ]
[FILE] test_prober.cpython-310.pyc [ edit | delete | rename ]
[FILE] test_storage.cpython-310.pyc [ edit | delete | rename ]
[FILE] test_utils.cpython-310.pyc [ edit | delete | rename ]
[FILE] __init__.cpython-310.pyc [ edit | delete | rename ]

Viewing: /snap/core22/2437/usr/lib/python3/dist-packages/probert/tests/__pycache__/test_storage.cpython-310.pyc

o

?�^��@sTddlZddlZddlmZmZddlmZGdd�dej�ZGdd�dej�Z	dS)�N)�Storage�StorageInfo)�FAKE_PROBE_ALL_JSONcs$eZdZ�fdd�Zdd�Z�ZS)�ProbertTestStoragecsTtt|���tt��}t�|�|_Wd�n1swYt|jd�|_	dS)N)�results)
�superr�setUp�openr�json�loadrr�storage��self�f��	__class__��</usr/lib/python3/dist-packages/probert/tests/test_storage.pyr	s

�zProbertTestStorage.setUpcCs|�d|j�dS�N)�assertNotEqualr)rrrr�test_storage_initsz$ProbertTestStorage.test_storage_init)�__name__�
__module__�__qualname__rr�
__classcell__rrrrrsrcs0eZdZdZ�fdd�Zdd�Zdd�Z�ZS)�ProbertTestStorageInfoz� properties:
        .name = /dev/sda
        .type = disk
        .vendor = SanDisk
        .model = SanDisk_12123123
        .serial = aaccasdf
        .devpath = /devices
        .is_virtual =
        .raw = {raw dictionary}
    csHtt|���tt��}t�|�|_Wd�dS1swYdSr)rrrr	rr
rrr
rrrrs
"�zProbertTestStorageInfo.setUpcCs*ddddid�i}t|�}|�|d�dS)N�/dev/sda�disk�size�1000000)�DEVTYPE�attrs)rr)r�
probe_data�sirrr�test_storageinfo_init#s���z,ProbertTestStorageInfo.test_storageinfo_initc
Csdd|j�d��d�i}t|d�}ddddddd	|�d�d
�}|��D]
\}}|�t||�|�q"dS)Nrr)r"r�SanDisk�SanDisk_SD5SG2128G1052E�$SanDisk_SD5SG2128G1052E_133507400177zI/devices/pci0000:00/0000:00:1f.2/ata1/host0/target0:0:0/0:0:0:0/block/sdaF)�name�type�vendor�model�serial�devpath�
is_virtual�raw)r�getr�items�assertEqual�getattr)r�sdar#�props�prop�valuerrr�test_storageinfo_attributes/s
�
�z2ProbertTestStorageInfo.test_storageinfo_attributes)rrr�__doc__rr$r8rrrrrrs

r)
�	testtoolsr
�probert.storagerr�probert.tests.fakesr�TestCaserrrrrr�<module>s
Upload File: