Ñò
$ŸIc @ s d Z d d k Z d d k Z d d k l Z l Z d d k l Z l Z d d k l
Z
l Z d e f d „ ƒ YZ
d e f d „ ƒ YZ d S(
s Utility classes for creating workable pylons controllers for unit
testing.
These classes are used solely by Pylons for unit testing controller
functionality.
iÿÿÿÿN( t request_defaultst response_defaults( t Requestt Response( t
ContextObjt
PylonsContextt ControllerWrapc B s e Z d „ Z d „ Z RS( c C s
| | _ d S( N( t
controller( t selfR ( ( s3 /usr/lib/python2.6/site-packages/pylons/testutil.pyt __init__ s c C s" | i ƒ } d | _ | | | ƒ S( N( R t Nonet start_response( R t environR t app( ( s3 /usr/lib/python2.6/site-packages/pylons/testutil.pyt __call__ s ( t __name__t
__module__R R ( ( ( s3 /usr/lib/python2.6/site-packages/pylons/testutil.pyR s t SetupCacheGlobalc B s# e Z e e e d „ Z d „ Z RS( c C s™ | oa t d t f h ƒ } d | _ d | _ t d t f h ƒ | _ t d d ƒ | i _ | | _ n | | _ | | _ | | _
| | _ | | _ d S( Ns G objectt Helloi s App conft
cache_enabledt True(
t typet objectt messaget countert
pylons_configt dictt app_conft gR
R t setup_cachet
setup_sessiont setup_g( R R
R R R R R ( ( s3 /usr/lib/python2.6/site-packages/pylons/testutil.pyR s
c C sÝ | d } t ƒ } | i d h ƒ } | i o2 | d | _ | i t i | d ƒ d | d