Current File : //opt/imh-python/lib/python2.7/test/test_pep247.pyo
�
��Wc@s�dZddlZejdde�ejdde�ddlZddlZddlZddlZddlm	Z	dej
fd��YZd	�Ze
d
kr�e�ndS(sV
Test suite to check compilance with PEP 247, the standard API
for hashing algorithms
i����Ntignoresthe md5 module is deprecated.*sthe sha module is deprecated.*(ttest_supportt
Pep247TestcBs/eZdd�Zd�Zd�Zd�ZRS(c
Cs|jt|d��|j|jdkp7|jdk�|dk	r�|j|�}|j|d�}|j|d�j�}|j|�}|jd�|j�}nU|j�}|jd�}|jd�j�}|j�}|jd�|j�}|j||�|jt|d��|jdk	rN|j|j|j�n|j|jt|��|jd�|j	�}|j|j�|j��|j|j
�|j
��|j�|j
�}	}
d}x"|	D]}|dt|�7}q�W|j||
�dS(Ntdigest_sizeitstringts%02x(t
assertTruethasattrRtNonetnewtdigesttupdatetassertEqualtlentcopyt	hexdigesttord(
tselftmoduletkeytobj1tobj2th1tobj3th2tobj_copyR
Rthd2tbyte((si/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_pep247.pytcheck_modules:%



cCs|jt�dS(N(Rtmd5(R((si/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_pep247.pyttest_md5=scCs|jt�dS(N(Rtsha(R((si/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_pep247.pyttest_sha@scCs|jtdd�dS(NRtabc(Rthmac(R((si/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_pep247.pyt	test_hmacCsN(t__name__t
__module__RRRR R#(((si/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_pep247.pyRs(		cCstjt�dS(N(Rtrun_unittestR(((si/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_pep247.pyt	test_mainFst__main__(t__doc__twarningstfilterwarningstDeprecationWarningR"RRtunittestttestRtTestCaseRR'R$(((si/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_pep247.pyt<module>s3