Back to index

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

List of all members.

Public Member Functions

def afterSetUp
def testToolExists
def testDefaultCssIsInstalled
def setRequestMethod
def getAuthenticator
def setupAuthenticator

Public Attributes

 tool

Detailed Description

Definition at line 11 of file testCSSandJSRegistry.py.


Member Function Documentation

Definition at line 13 of file testCSSandJSRegistry.py.

00013 
00014     def afterSetUp(self):
00015         self.tool = getToolByName(self.portal, CSSTOOLNAME)

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 testCSSandJSRegistry.py.

00019 
00020     def testDefaultCssIsInstalled(self):
00021         installedStylesheetIds = self.tool.getResourceIds()
00022         expected = ['ploneCustom.css',
00023                     'authoring.css', 
00024                     'public.css',
00025                     'base.css',
00026                     'portlets.css',
00027                     'deprecated.css',
00028                     'member.css',
00029                     'print.css',
00030                     'RTL.css',
00031                     'mobile.css',]
00032         for e in expected:
00033             self.failUnless(e in installedStylesheetIds, e)
00034 

Definition at line 16 of file testCSSandJSRegistry.py.

00016 
00017     def testToolExists(self):
00018         self.failUnless(CSSTOOLNAME in self.portal.objectIds())


Member Data Documentation

Definition at line 14 of file testCSSandJSRegistry.py.


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