Back to index

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

List of all members.

Public Member Functions

def afterSetUp
def testManagementPageCharsetEqualsDefaultCharset
def testManagementPageCharsetIsComputedAttribute
def testManagementPageCharsetFallbackNoProperty
def testManagementPageCharsetFallbackNoPropertySheet
def testManagementPageCharsetFallbackNotAPropertySheet
def testManagementPageCharsetFallbackNoPropertyTool
def setRequestMethod
def getAuthenticator
def setupAuthenticator

Public Attributes

 properties

Detailed Description

Definition at line 985 of file testPortalCreation.py.


Member Function Documentation

Definition at line 987 of file testPortalCreation.py.

00987 
00988     def afterSetUp(self):
00989         self.properties = self.portal.portal_properties

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 990 of file testPortalCreation.py.

00990 
00991     def testManagementPageCharsetEqualsDefaultCharset(self):
00992         # Checks that 'management_page_charset' attribute of the portal
00993         # reflects 'portal_properties/site_properties/default_charset'.
00994         default_charset = self.properties.site_properties.getProperty('default_charset', None)
00995         self.failUnless(default_charset)
00996         manage_charset = getattr(self.portal, 'management_page_charset', None)
00997         self.failUnless(manage_charset)
00998         self.assertEqual(manage_charset, default_charset)
00999         self.assertEqual(manage_charset, 'utf-8')

Here is the call graph for this function:

Definition at line 1009 of file testPortalCreation.py.

01009 
01010     def testManagementPageCharsetFallbackNoProperty(self):
01011         self.properties.site_properties._delProperty('default_charset')
01012         manage_charset = getattr(self.portal, 'management_page_charset', None)
01013         self.assertEqual(manage_charset, 'utf-8')

Here is the call graph for this function:

Definition at line 1014 of file testPortalCreation.py.

01014 
01015     def testManagementPageCharsetFallbackNoPropertySheet(self):
01016         self.properties._delObject('site_properties')
01017         manage_charset = getattr(self.portal, 'management_page_charset', None)
01018         self.assertEqual(manage_charset, 'utf-8')

Here is the call graph for this function:

Definition at line 1025 of file testPortalCreation.py.

01025 
01026     def testManagementPageCharsetFallbackNoPropertyTool(self):
01027         self.portal._delObject('portal_properties')
01028         manage_charset = getattr(self.portal, 'management_page_charset', None)
01029         self.assertEqual(manage_charset, 'utf-8')
01030 

Here is the call graph for this function:

Definition at line 1019 of file testPortalCreation.py.

01019 
01020     def testManagementPageCharsetFallbackNotAPropertySheet(self):
01021         self.properties._delObject('site_properties')
01022         self.properties.site_properties = 'foo'
01023         manage_charset = getattr(self.portal, 'management_page_charset', None)
01024         self.assertEqual(manage_charset, 'utf-8')

Here is the call graph for this function:

Definition at line 1000 of file testPortalCreation.py.

01000 
01001     def testManagementPageCharsetIsComputedAttribute(self):
01002         # Checks that 'management_page_charset' attribute of the portal
01003         # is a ComputedAttribute and always follows the default_charset property.
01004         self.properties.site_properties.manage_changeProperties(default_charset='latin1')
01005         default_charset = self.properties.site_properties.getProperty('default_charset', None)
01006         manage_charset = getattr(self.portal, 'management_page_charset', None)
01007         self.assertEqual(manage_charset, default_charset)
01008         self.assertEqual(manage_charset, 'latin1')

Here is the call graph for this function:


Member Data Documentation

Definition at line 988 of file testPortalCreation.py.


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