Back to index

plone3  3.1.7
Public Member Functions
CMFPlone.tests.testOrderSupport.TestOrderSupportInPortal Class Reference
Inheritance diagram for CMFPlone.tests.testOrderSupport.TestOrderSupportInPortal:
Inheritance graph
Collaboration diagram for CMFPlone.tests.testOrderSupport.TestOrderSupportInPortal:
Collaboration graph

List of all members.

Public Member Functions

def afterSetUp
def testRenameObject
def setRequestMethod
def getAuthenticator
def setupAuthenticator

Detailed Description

Definition at line 211 of file

Member Function Documentation

Definition at line 213 of file

00214     def afterSetUp(self):
00215         self.setRoles(['Manager'])
00216         # Add a bunch of subobjects we can order later on
00217         self.portal.invokeFactory('Document', id='foo')
00218         self.portal.invokeFactory('Document', id='bar')
00219         self.portal.invokeFactory('Document', id='baz')
00220         # Move them to the top
00221         self.portal.moveObjectsByDelta(ids=['foo', 'bar', 'baz'],
00222                                        delta=-len(self.portal._objects),
00223                                        subset_ids=self.portal.objectIds())

Here is the call graph for this function:

Definition at line 30 of file

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,
) [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

00027     def setRequestMethod(self, method):
00028'REQUEST_METHOD', method)
00029 = method

Here is the caller graph for this function:

Definition at line 35 of file

00036     def setupAuthenticator(self):
00037         name, token = self.getAuthenticator()
00038[name] = token

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 224 of file

00225     def testRenameObject(self):
00226         # Renaming should not change position
00227         transaction.savepoint(optimistic=True) # make rename work
00228         self.portal.manage_renameObjects(['bar'], ['barney'])
00229         self.assertEqual(self.portal.getObjectPosition('foo'), 0)
00230         self.assertEqual(self.portal.getObjectPosition('barney'), 1)
00231         self.assertEqual(self.portal.getObjectPosition('baz'), 2)

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