o
    ÞñhF  ã                   @   sP   d Z ddlZddlmZ ddlmZ ddlmZ ddlm	Z	 G dd„ deƒZ
dS )	z:Module with examples from the tutorial section of the docsé    N)ÚTestBase)ÚIStream)ÚLooseObjectDB)ÚBytesIOc                   @   s   e Zd Zdd„ ZdS )ÚTestExamplesc                 C   sê   t tj | jd¡ƒ}| ¡ D ]-}| |¡}| |¡}|d d… |d d… ks(J ‚t| 	¡ ƒ|j
ks3J ‚| |j¡s;J ‚qz~~W n	 tyI   Y nw d}tdt|ƒt|ƒƒ}|jd u s]J ‚| |¡ t|jƒdkskJ ‚| |j¡ssJ ‚d S )NÚobjectsé   s   my dataÚblobé   )r   ÚosÚpathÚjoinÚgitrepopathÚsha_iterÚinfoÚstreamÚlenÚreadÚsizeÚ
has_objectÚbinshaÚUnboundLocalErrorr   r   Ústore)ÚselfÚldbÚsha1ÚoinfoÚostreamÚdataÚistream© r    úK/var/www/vscode/kcb/lib/python3.10/site-packages/gitdb/test/test_example.pyÚ	test_base   s&   

ÿ
zTestExamples.test_baseN)Ú__name__Ú
__module__Ú__qualname__r"   r    r    r    r!   r      s    r   )Ú__doc__r   Úgitdb.test.libr   Úgitdbr   Úgitdb.dbr   Úior   r   r    r    r    r!   Ú<module>   s   