Ñò
 ÀKc           @   s)   d  Z  d d k l Z l Z d   Z d S(   s    
    werkzeug.security test
    ~~~~~~~~~~~~~~~~~~~~~~

    :copyright: (c) 2010 by the Werkzeug Team, see AUTHORS for more details.
    :license: BSD license.
i˙˙˙˙(   t   generate_password_hasht   check_password_hashc          C   sI  t  d  }  t  d d d } |  | j p t  t |  d  p t  t | d  p t  |  i d  p t  | i d  p t  t  d d d } | d j p t  t | d  p t  t  d d d } | i d	  p t  t | d  p t  d
 } t | d  p t  d } t | d  p t  d S(   s4   Test the password hashing and password hash checkingt   defaultu   defaultt   methodt   sha1s   sha1$t   plains   plain$$defaultt   md5s   md5$s%   md5$$c21f969b5f03d33d43e04f8f136e7682u%   md5$$c21f969b5f03d33d43e04f8f136e7682N(   R    t   AssertionErrorR   t
   startswith(   t   hash1t   hash2t   fakehasht   mhasht   legacy(    (    sA   /Users/mitsuhiko/Development/werkzeug-main/tests/test_security.pyt   test_password_hashing   s"    N(   t   __doc__t   werkzeugR    R   R   (    (    (    sA   /Users/mitsuhiko/Development/werkzeug-main/tests/test_security.pyt   <module>   s   