[Checkins] SVN: PluggableAuthService/branches/1.4/ Merged trunk
r73606:73607 into 1.4 branch.
Stefan H. Holek
stefan at epy.co.at
Sun Mar 25 11:21:36 EDT 2007
Log message for revision 73610:
Merged trunk r73606:73607 into 1.4 branch.
Added has_key API and form property to FauxRequest.
Changed:
U PluggableAuthService/branches/1.4/plugins/tests/test_CookieAuthHelper.py
U PluggableAuthService/branches/1.4/tests/test_PluggableAuthService.py
-=-
Modified: PluggableAuthService/branches/1.4/plugins/tests/test_CookieAuthHelper.py
===================================================================
--- PluggableAuthService/branches/1.4/plugins/tests/test_CookieAuthHelper.py 2007-03-25 15:09:38 UTC (rev 73609)
+++ PluggableAuthService/branches/1.4/plugins/tests/test_CookieAuthHelper.py 2007-03-25 15:21:36 UTC (rev 73610)
@@ -145,7 +145,7 @@
, __ac_password='bar'
, RESPONSE=response
)
- request.form = {'came_from':''}
+ request.form['came_from'] = ''
helper.REQUEST = request
helper.login()
Modified: PluggableAuthService/branches/1.4/tests/test_PluggableAuthService.py
===================================================================
--- PluggableAuthService/branches/1.4/tests/test_PluggableAuthService.py 2007-03-25 15:09:38 UTC (rev 73609)
+++ PluggableAuthService/branches/1.4/tests/test_PluggableAuthService.py 2007-03-25 15:21:36 UTC (rev 73610)
@@ -170,6 +170,8 @@
class FauxRequest( object ):
+ form = property(lambda self: self)
+
def __init__( self, steps=(), **kw ):
self.steps = steps
@@ -193,6 +195,10 @@
self._dict[ key ] = value
+ def has_key( self, key ):
+
+ return self._dict.has_key(key)
+
def _hold(self, something):
self._held.append(something)
More information about the Checkins
mailing list