Back to index

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

List of all members.

Public Member Functions

def afterSetUp
def testInstallUninstallProduct
def setRequestMethod
def getAuthenticator
def setupAuthenticator

Public Attributes

 qi

Private Member Functions

def _installed
def _available

Detailed Description

Definition at line 8 of file testQuickInstallerTool.py.


Member Function Documentation

Definition at line 16 of file testQuickInstallerTool.py.

00016 
00017     def _available(self):
00018         return [p['id'] for p in self.qi.listInstallableProducts()]

Here is the caller graph for this function:

Definition at line 13 of file testQuickInstallerTool.py.

00013 
00014     def _installed(self):
00015         return [p['id'] for p in self.qi.listInstalledProducts()]

Here is the caller graph for this function:

Definition at line 10 of file testQuickInstallerTool.py.

00010 
00011     def afterSetUp(self):
00012         self.qi = self.portal.portal_quickinstaller

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 19 of file testQuickInstallerTool.py.

00019 
00020     def testInstallUninstallProduct(self):
00021         # CMFPlacefulWorkflow should be uninstalled, we install it and
00022         # it should not show up as installable
00023         self.setRoles(('Manager',))
00024         self.qi.installProducts(['CMFPlacefulWorkflow', ])
00025         self.failUnless('CMFPlacefulWorkflow' in self._installed())
00026         self.failIf('CMFPlacefulWorkflow' in self._available())
00027         self.qi.uninstallProducts(['CMFPlacefulWorkflow', ])
00028         self.failUnless('CMFPlacefulWorkflow' in self._available())
00029         self.failIf('CMFPlacefulWorkflow' in self._installed())
00030 

Here is the call graph for this function:


Member Data Documentation

Definition at line 11 of file testQuickInstallerTool.py.


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