Back to index

plone3  3.1.7
Public Member Functions
plone.app.portlets.tests.test_cache.TestCacheKey Class Reference
Inheritance diagram for plone.app.portlets.tests.test_cache.TestCacheKey:
Inheritance graph
[legend]
Collaboration diagram for plone.app.portlets.tests.test_cache.TestCacheKey:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def afterSetUp
def testRenderCachekey
def testAnonymousFlag
def testNonASCIIPath

Detailed Description

Definition at line 30 of file test_cache.py.


Member Function Documentation

Definition at line 32 of file test_cache.py.

00032 
00033     def afterSetUp(self):
00034         setHooks()
00035         setSite(self.portal)

Here is the call graph for this function:

Definition at line 46 of file test_cache.py.

00046 
00047     def testAnonymousFlag(self):
00048         context = self.folder
00049         renderer = MockRenderer(context, context.REQUEST)
00050 
00051         key1 = render_cachekey(None, renderer)
00052         self.logout()
00053         key2 = render_cachekey(None, renderer)
00054 
00055         self.assertNotEqual(key1, key2)

Here is the call graph for this function:

Definition at line 56 of file test_cache.py.

00056 
00057     def testNonASCIIPath(self):
00058         # http://dev.plone.org/plone/ticket/7086
00059         context = self.folder
00060         renderer = MockRenderer(context, context.REQUEST)
00061         renderer.data_brains = [
00062             MockBrain("Pr\xc5\xafvodce"), MockBrain("p\xc5\x99i")]
00063         render_cachekey(None, renderer)

Here is the call graph for this function:

Definition at line 36 of file test_cache.py.

00036 
00037     def testRenderCachekey(self):
00038         context = self.folder
00039         renderer = MockRenderer(context, context.REQUEST)
00040 
00041         key1 = render_cachekey(None, renderer) 
00042         renderer.manager.__name__ += '__changed__'
00043         key2 = render_cachekey(None, renderer)
00044 
00045         self.failUnless(key1 != key2)

Here is the call graph for this function:


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