Back to index

plone3  3.1.7
Classes | Functions | Variables
CMFCore.tests.test_FSSTXMethod Namespace Reference

Classes

class  FSSTXMaker
class  _TemplateSwitcher
class  FSSTXMethodTests
class  FSSTXMethodCustomizationTests

Functions

def _normalize_whitespace
def test_suite

Variables

string _EXPECTED_HTML
string _TEST_MAIN_TEMPLATE
tuple WS = re.compile(r'\s+')
string ADD_ZPT = 'Add page templates'
tuple ZPT_META_TYPES

Function Documentation

Definition at line 68 of file test_FSSTXMethod.py.

00068 
00069 def _normalize_whitespace(text):
00070     return ' '.join(WS.split(text.rstrip()))
00071 

Here is the caller graph for this function:

Definition at line 306 of file test_FSSTXMethod.py.

00306 
00307 def test_suite():
00308     return unittest.TestSuite((
00309         unittest.makeSuite(FSSTXMethodTests),
00310         unittest.makeSuite(FSSTXMethodCustomizationTests),
00311         ))

Here is the call graph for this function:


Variable Documentation

Initial value:
00001 """\
00002 <html>
00003 <body>
00004 
00005 <h1>Title Goes Here</h1>
00006 <h2>  Subhead Here</h2>
00007 <p>    And this is a paragraph,
00008     broken across lines.</p>
00009 
00010 </body>
00011 </html>
00012 """

Definition at line 42 of file test_FSSTXMethod.py.

Initial value:
00001 """\
00002 <html metal:define-macro="master">
00003 <body>
00004 
00005 <metal:block define-slot="body">
00006 BODY GOES HERE
00007 </metal:block>
00008 </body>
00009 </html>
00010 """

Definition at line 55 of file test_FSSTXMethod.py.

string CMFCore.tests.test_FSSTXMethod.ADD_ZPT = 'Add page templates'

Definition at line 172 of file test_FSSTXMethod.py.

tuple CMFCore.tests.test_FSSTXMethod.WS = re.compile(r'\s+')

Definition at line 66 of file test_FSSTXMethod.py.

Initial value:
00001 ( { 'name'        : 'Page Template'
00002                    , 'action'      : 'manage_addPageTemplate'
00003                    , 'permission'  : ADD_ZPT
00004                    }
00005                  ,
00006                  )

Definition at line 173 of file test_FSSTXMethod.py.