File manager - Edit - /opt/imh-python/lib/python2.7/site-packages/werkzeug/testsuite/contrib/securecookie.pyo
Back
� �[�Rc @ s{ d Z d d l Z d d l m Z d d l m Z d d l m Z m Z d d l m Z d e f d � � YZ d � Z d S( s� werkzeug.testsuite.securecookie ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Tests the secure cookie. :copyright: (c) 2014 by Armin Ronacher. :license: BSD, see LICENSE for more details. i����N( t WerkzeugTestCase( t parse_cookie( t Requestt Response( t SecureCookiet SecureCookieTestCasec B s e Z d � Z d � Z RS( c C sm t d d � } d | d <| j � } t j | d � } | j | | � t j | d � } | j | i � d S( Nt secret_keyt fooi* t xs wrong foo( R t serializet unserializet assert_equal( t selft ct st c2t c3( ( sV /opt/imh-python/lib/python2.7/site-packages/werkzeug/testsuite/contrib/securecookie.pyt test_basic_support s c C s� t j � } t � } t j | d d �} d | d <| j | j d � | j | � t j d i d t | j d � d d 6� } t j | d d �} | j | | � d S( NR R i* t headerss session="%s"s set-cookiet sessiont Cookie( R t from_valuesR R t load_cookieR R t save_cookieR R ( R t reqt respR R ( ( sV /opt/imh-python/lib/python2.7/site-packages/werkzeug/testsuite/contrib/securecookie.pyt test_wrapper_support, s "( t __name__t __module__R R ( ( ( sV /opt/imh-python/lib/python2.7/site-packages/werkzeug/testsuite/contrib/securecookie.pyR s c C s&