Back to index

plone3  3.1.7
Public Member Functions
CMFPlone.tests.testWebDAV.TestDAVProperties Class Reference
Inheritance diagram for CMFPlone.tests.testWebDAV.TestDAVProperties:
Inheritance graph
[legend]
Collaboration diagram for CMFPlone.tests.testWebDAV.TestDAVProperties:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def testPropertiesToolTitle
def setRequestMethod
def getAuthenticator
def setupAuthenticator

Detailed Description

Definition at line 20 of file testWebDAV.py.


Member Function Documentation

Definition at line 30 of file PloneTestCase.py.

00030 
00031     def getAuthenticator(self):
00032         tag = AuthenticatorView('context', 'request').authenticator()
00033         pattern = '<input .*name="(\w+)".*value="(\w+)"'
00034         return match(pattern, tag).groups()

Here is the call graph for this function:

Here is the caller graph for this function:

def CMFPlone.tests.PloneTestCase.PloneTestCase.setRequestMethod (   self,
  method 
) [inherited]
This is a stub now, but in case you want to try
   something fancy on Your Branch (tm), put it here.

Definition at line 26 of file PloneTestCase.py.

00026 
00027     def setRequestMethod(self, method):
00028         self.app.REQUEST.set('REQUEST_METHOD', method)
00029         self.app.REQUEST.method = method

Here is the caller graph for this function:

Definition at line 35 of file PloneTestCase.py.

00035 
00036     def setupAuthenticator(self):
00037         name, token = self.getAuthenticator()
00038         self.app.REQUEST.form[name] = token
00039 

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 22 of file testWebDAV.py.

00022 
00023     def testPropertiesToolTitle(self):
00024         ptool = getToolByName(self.portal, 'portal_properties')
00025         psets = dict(ptool.propertysheets.items())
00026         self.failUnless('webdav' in psets.keys())
00027         default = psets['webdav']
00028         items = dict(default.propertyItems())
00029         self.failUnless('displayname' in items.keys())
00030         self.assertEquals(items['displayname'], self.portal.title)
00031 

Here is the call graph for this function:


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