ó
ŒwÛjc           @   sƒ   d  d l  Z  e  j d d e ƒ d  d l Z d  d l Z d  d l m Z d e j f d „  ƒ  YZ d „  Z	 e
 d k r e	 ƒ  n  d S(	   iÿÿÿÿNt   ignores   the sha module is deprecated.*(   t   test_supportt   SHATestCasec           B   s5   e  Z d  „  Z d „  Z d „  Z d „  Z d „  Z RS(   c         C   s›   t  j | ƒ } | j ƒ  } |  j | | k ƒ | j ƒ  } |  j | | k ƒ | j ƒ  } d } x" | D] } | d t | ƒ 7} qf W|  j | | k ƒ d  S(   Nt    s   %02x(   t   shat   newt	   hexdigestt
   assertTruet   digestt   ord(   t   selft   dataR   t   objt   computedt   computed_againt   hexdt   c(    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_sha.pyt   check   s    c         C   s   |  j  d d ƒ d  S(   Nt   abct(   a9993e364706816aba3e25717850c26c9cd0d89d(   R   (   R
   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_sha.pyt   test_case_1#   s    	c         C   s   |  j  d d ƒ d  S(   Nt8   abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopqt(   84983e441c3bd26ebaae4aa1f95129e5e54670f1(   R   (   R
   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_sha.pyt   test_case_2'   s    	c         C   s   |  j  d d d ƒ d  S(   Nt   ai@B t(   34aa973cd4c4daa4f61eeb2bdbad27316534016f(   R   (   R
   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_sha.pyt   test_case_3+   s    c         C   s   |  j  t d ƒ d d ƒ d  S(   Niª   iP   t(   4ca0ef38f1794b28a8f8ee110ee79d48ce13be25(   R   t   chr(   R
   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_sha.pyt   test_case_4/   s    (   t   __name__t
   __module__R   R   R   R   R   (    (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_sha.pyR      s
   				c           C   s   t  j t ƒ d  S(   N(   R   t   run_unittestR   (    (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_sha.pyt	   test_main3   s    t   __main__(   t   warningst   filterwarningst   DeprecationWarningR   t   unittestt   testR   t   TestCaseR   R!   R   (    (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_sha.pyt   <module>   s   #	