Your IP : 172.28.240.42


Current Path : /usr/lib/python2.7/dist-packages/twisted/python/test/
Upload File :
Current File : //usr/lib/python2.7/dist-packages/twisted/python/test/test_hashlib.pyc

ó
[³XMc@sFdZddlmZddlmZmZdefd„ƒYZdS(s%
Tests for L{twisted.python.hashlib}
iÿÿÿÿ(tTestCase(tmd5tsha1tHashObjectTestscBs eZdZd„Zd„ZRS(sU
    Tests for the hash object APIs presented by L{hashlib}, C{md5} and C{sha1}.
    cCs2|jtƒjƒdƒ|jtdƒjƒdƒ|jtdƒjƒdƒ|jtdƒjƒdƒ|jtdƒjƒd	ƒ|jtd
ƒjƒdƒ|jtdƒjƒd
ƒ|jtƒjƒjdƒdƒtƒ}|jdƒ|j|jƒjdƒdƒ|jtƒjdƒdS(s£
        L{hashlib.md5} returns an object which can be used to compute an MD5
        hash as defined by U{RFC 1321<http://www.ietf.org/rfc/rfc1321.txt>}.
        t d41d8cd98f00b204e9800998ecf8427etat 0cc175b9c0f1b6a831c399e269772661tabct 900150983cd24fb0d6963f7d28e17f72smessage digestt f96b697d7cb7938d525a2f31aaf161d0tabcdefghijklmnopqrstuvwxyzt c3fcd3d76192e4007dfb496cca67e13bt>ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789t d174ab98d277d9f5a5611c2c9f419d9ftP12345678901234567890123456789012345678901234567890123456789012345678901234567890t 57edf4a22be3c955ac49da2e2107b67athexiN(tassertEqualRt	hexdigesttdigesttencodetupdatetdigest_size(tselfthash((sD/usr/lib/python2.7/dist-packages/twisted/python/test/test_hashlib.pyttest_md5s6	
cCsÍd„}|jtdƒjƒ|dƒƒ|jtdƒjƒ|dƒƒ|jtdƒjƒjdƒ|dƒƒtƒ}|jdƒ|j|jƒjdƒ|dƒƒ|jtƒjdƒdS(	s¦
        L{hashlib.sha1} returns an object which can be used to compute a SHA1
        hash as defined by U{RFC 3174<http://tools.ietf.org/rfc/rfc3174.txt>}.
        cSsdj|jƒƒjƒS(Nt(tjointsplittlower(ts((sD/usr/lib/python2.7/dist-packages/twisted/python/test/test_hashlib.pytformat?sRs;A9 99 3E 36 47 06 81 6A BA 3E 25 71 78 50 C2 6C 9C D0 D8 9Dt8abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopqs;84 98 3E 44 1C 3B D2 6E BA AE 4A A1 F9 51 29 E5 E5 46 70 F1RiN(RRRRRRR(RRR((sD/usr/lib/python2.7/dist-packages/twisted/python/test/test_hashlib.pyt	test_sha1:s*	


	

(t__name__t
__module__t__doc__RR!(((sD/usr/lib/python2.7/dist-packages/twisted/python/test/test_hashlib.pyR
s	)N(R$ttwisted.trial.unittestRttwisted.python.hashlibRRR(((sD/usr/lib/python2.7/dist-packages/twisted/python/test/test_hashlib.pyt<module>s