Back to index

plone3  3.1.7
Public Member Functions | Public Attributes
PluggableAuthService.plugins.tests.test_CookieAuthHelper.FauxCookieResponse Class Reference

List of all members.

Public Member Functions

def __init__
def setCookie
def expireCookie
def redirect

Public Attributes

 cookies
 redirected
 status
 headers

Detailed Description

Definition at line 34 of file test_CookieAuthHelper.py.


Constructor & Destructor Documentation

Definition at line 36 of file test_CookieAuthHelper.py.

00036 
00037     def __init__(self):
00038         self.cookies = {}
00039         self.redirected = False
00040         self.status = '200'
00041         self.headers = {}


Member Function Documentation

Definition at line 45 of file test_CookieAuthHelper.py.

00045 
00046     def expireCookie(self, cookie_name, path):
00047         if (cookie_name, path) in self.cookies:
00048             del self.cookies[(cookie_name, path)]

def PluggableAuthService.plugins.tests.test_CookieAuthHelper.FauxCookieResponse.redirect (   self,
  location,
  status = 302,
  lock = 0 
)

Definition at line 49 of file test_CookieAuthHelper.py.

00049 
00050     def redirect(self, location, status=302, lock=0):
00051         self.status = status
00052         self.headers['Location'] = location

def PluggableAuthService.plugins.tests.test_CookieAuthHelper.FauxCookieResponse.setCookie (   self,
  cookie_name,
  cookie_value,
  path 
)

Definition at line 42 of file test_CookieAuthHelper.py.

00042 
00043     def setCookie(self, cookie_name, cookie_value, path):
00044         self.cookies[(cookie_name, path)] = cookie_value


Member Data Documentation

Definition at line 37 of file test_CookieAuthHelper.py.

Definition at line 40 of file test_CookieAuthHelper.py.

Definition at line 38 of file test_CookieAuthHelper.py.

Definition at line 39 of file test_CookieAuthHelper.py.


The documentation for this class was generated from the following file: