Back to index

plone3  3.1.7
Classes | Functions
PluggableAuthService.plugins.tests.helpers Namespace Reference

Classes

class  FauxPAS
class  FauxSmartPAS
class  DummyUser

Functions

def makeRequestAndResponse

Function Documentation

Definition at line 51 of file helpers.py.

00051 
00052 def makeRequestAndResponse():
00053     # the POST checking requires a real HTTPRequest
00054     from cStringIO import StringIO
00055     from ZPublisher.HTTPRequest import HTTPRequest
00056     from ZPublisher.HTTPResponse import HTTPResponse
00057 
00058     res = HTTPResponse()
00059     req = HTTPRequest(StringIO(),
00060                       {'SERVER_NAME': 'localhost',
00061                        'SERVER_PORT': '80'},
00062                       res)
00063     return req, res

Here is the caller graph for this function: