Back to index

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

List of all members.

Public Member Functions

def testGetNavigationRootPropertyNotSet
def testGetNavigationRootPropertyEmptyNoVirtualHost
def testGetNavigationRootPropertyIsRoot
def testGetNavigationRootPropertyIsFolder
def testGetNavigationRootWithINavigationRoot
def setRequestMethod
def getAuthenticator
def setupAuthenticator

Detailed Description

Definition at line 466 of file testNavTree.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 473 of file testNavTree.py.

00473 
00474     def testGetNavigationRootPropertyEmptyNoVirtualHost(self):
00475         self.portal.portal_properties.navtree_properties.manage_changeProperties(root='')
00476         root = getNavigationRoot(self.portal)
00477         self.assertEqual(root, '/'.join(self.portal.getPhysicalPath()))

Here is the call graph for this function:

Definition at line 487 of file testNavTree.py.

00487 
00488     def testGetNavigationRootPropertyIsFolder(self):
00489         folderPath = '/'.join(self.folder.getPhysicalPath())
00490         portalPath = '/'.join(self.portal.getPhysicalPath())
00491         relativePath = folderPath[len(portalPath):]
00492         self.portal.portal_properties.navtree_properties.manage_changeProperties(root=relativePath)
00493         root = getNavigationRoot(self.portal)
00494         self.assertEqual(root, folderPath)
        

Here is the call graph for this function:

Definition at line 482 of file testNavTree.py.

00482 
00483     def testGetNavigationRootPropertyIsRoot(self):
00484         self.portal.portal_properties.navtree_properties.manage_changeProperties(root='/')
00485         root = getNavigationRoot(self.portal)
00486         self.assertEqual(root, '/'.join(self.portal.getPhysicalPath()))

Here is the call graph for this function:

Definition at line 468 of file testNavTree.py.

00468 
00469     def testGetNavigationRootPropertyNotSet(self):
00470         self.portal.portal_properties.navtree_properties._delProperty('root')
00471         root = getNavigationRoot(self.portal)
00472         self.assertEqual(root, '/'.join(self.portal.getPhysicalPath()))

Here is the call graph for this function:

Definition at line 495 of file testNavTree.py.

00495 
00496     def testGetNavigationRootWithINavigationRoot(self):
00497         folderPath = '/'.join(self.folder.getPhysicalPath())
00498         self.folder.invokeFactory('Folder', 'folder1')
00499         self.folder.folder1.invokeFactory('Document', 'doc1')
00500         directlyProvides(self.folder, INavigationRoot)
00501         root = getNavigationRoot(self.folder.folder1.doc1)
00502         self.assertEqual(root, folderPath)
00503         

Here is the call graph for this function:


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