Back to index

plone3  3.1.7
Public Member Functions
plone.protect.tests.testPostOnly.PostOnlyTests Class Reference
Inheritance diagram for plone.protect.tests.testPostOnly.PostOnlyTests:
Inheritance graph
[legend]
Collaboration diagram for plone.protect.tests.testPostOnly.PostOnlyTests:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def makeRequest
def testNonHTTPRequestAllowed
def testGETRequestForbidden
def testPOSTRequestAllowed

Detailed Description

Definition at line 9 of file testPostOnly.py.


Member Function Documentation

Definition at line 10 of file testPostOnly.py.

00010 
00011     def makeRequest(self, method):
00012         return HTTPRequest(None,
00013                            dict(REQUEST_METHOD=method,
00014                                 SERVER_PORT="80",
00015                                 SERVER_NAME="localhost"),
00016                            None)

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 20 of file testPostOnly.py.

00020 
00021     def testGETRequestForbidden(self):
00022         self.assertRaises(Forbidden, check, self.makeRequest("GET"))

Here is the call graph for this function:

Definition at line 17 of file testPostOnly.py.

00017 
00018     def testNonHTTPRequestAllowed(self):
00019         check("not a request")

Here is the call graph for this function:

Definition at line 23 of file testPostOnly.py.

00023 
00024     def testPOSTRequestAllowed(self):
00025         check(self.makeRequest("POST"))
00026 

Here is the call graph for this function:


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