Back to index

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

List of all members.

Public Member Functions

def afterSetUp
def testLoWatermark
def testHiWatermark
def testUnderflow
def testOverflow
def testDRIUnderflow
def testDRIOverflow
def setRequestMethod
def getAuthenticator
def setupAuthenticator

Public Attributes

 catalog

Detailed Description

Definition at line 10 of file testDateIndexRanges.py.


Member Function Documentation

Definition at line 12 of file testDateIndexRanges.py.

00012 
00013     def afterSetUp(self):
00014         self.catalog = self.portal.portal_catalog
00015         self.folder.invokeFactory('Document', 'doc1', title='Foo')

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 42 of file testDateIndexRanges.py.

00042 
00043     def testDRIOverflow(self):
00044         self.folder.doc1.setEffectiveDate(DateTime(4009, 0))
00045         # No OverflowError due to monkey patch
00046         #self.assertRaises(OverflowError, self.folder.doc1.reindexObject)
00047         self.folder.doc1.reindexObject()
00048 

Definition at line 36 of file testDateIndexRanges.py.

00036 
00037     def testDRIUnderflow(self):
00038         self.folder.doc1.setEffectiveDate(DateTime(-2114, 0))
00039         # No OverflowError due to monkey patch
00040         #self.assertRaises(OverflowError, self.folder.doc1.reindexObject)
00041         self.folder.doc1.reindexObject()

Definition at line 20 of file testDateIndexRanges.py.

00020 
00021     def testHiWatermark(self):
00022         self.folder.doc1.setExpirationDate(DateTime(4008, 0))
00023         self.folder.doc1.reindexObject()

Definition at line 16 of file testDateIndexRanges.py.

00016 
00017     def testLoWatermark(self):
00018         self.folder.doc1.setExpirationDate(DateTime(-2113, 0))
00019         self.folder.doc1.reindexObject()

Definition at line 30 of file testDateIndexRanges.py.

00030 
00031     def testOverflow(self):
00032         self.folder.doc1.setExpirationDate(DateTime(4009, 0))
00033         # No OverflowError due to monkey patch
00034         #self.assertRaises(OverflowError, self.folder.doc1.reindexObject)
00035         self.folder.doc1.reindexObject()

Definition at line 24 of file testDateIndexRanges.py.

00024 
00025     def testUnderflow(self):
00026         self.folder.doc1.setExpirationDate(DateTime(-2114, 0))
00027         # No OverflowError due to monkey patch
00028         #self.assertRaises(OverflowError, self.folder.doc1.reindexObject)
00029         self.folder.doc1.reindexObject()


Member Data Documentation

Definition at line 13 of file testDateIndexRanges.py.


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