Back to index

plone3  3.1.7
Public Member Functions | Public Attributes
CMFPlone.tests.testRenderBase.TestRenderBase Class Reference
Inheritance diagram for CMFPlone.tests.testRenderBase.TestRenderBase:
Inheritance graph
[legend]
Collaboration diagram for CMFPlone.tests.testRenderBase.TestRenderBase:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def afterSetUp
def testRenderBase
def testFolderBase
def testFolderViewBase
def testDocumentBase
def testDocumentViewBase
def setRequestMethod
def getAuthenticator
def setupAuthenticator

Public Attributes

 folder_path

Detailed Description

Definition at line 8 of file testRenderBase.py.


Member Function Documentation

Definition at line 10 of file testRenderBase.py.

00010 
00011     def afterSetUp(self):
00012         self.folder_path = '/%s' % self.folder.absolute_url(1)
00013         self.folder.invokeFactory('Document', id='doc')
00014         self.portal.manage_addDTMLMethod('a_view', file='<dtml-var renderBase>')

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 29 of file testRenderBase.py.

00029 
00030     def testDocumentBase(self):
00031         base = self.publish(self.folder_path+'/doc/renderBase')
00032         self.assertEqual(base.getBody(),
00033                          self.folder.doc.absolute_url())

Definition at line 34 of file testRenderBase.py.

00034 
00035     def testDocumentViewBase(self):
00036         base = self.publish(self.folder_path+'/doc/a_view')
00037         self.assertEqual(base.getBody(),
00038                          self.folder.doc.absolute_url())
00039 

Definition at line 19 of file testRenderBase.py.

00019 
00020     def testFolderBase(self):
00021         base = self.publish(self.folder_path+'/renderBase')
00022         self.assertEqual(base.getBody(),
00023                          self.folder.absolute_url()+'/')

Definition at line 24 of file testRenderBase.py.

00024 
00025     def testFolderViewBase(self):
00026         base = self.publish(self.folder_path+'/a_view')
00027         self.assertEqual(base.getBody(),
00028                          self.folder.absolute_url()+'/')

Definition at line 15 of file testRenderBase.py.

00015 
00016     def testRenderBase(self):
00017         self.assertEqual(self.folder.renderBase(),
00018                          self.folder.absolute_url()+'/')


Member Data Documentation

Definition at line 11 of file testRenderBase.py.


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