Back to index

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

Classes

class  FSReSTMaker
class  FSReSTMethodTests
class  FSReSTMethodCustomizationTests

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 77 of file test_FSReSTMethod.py.

00077 
00078 def _normalize_whitespace(text):
00079     return ' '.join(WS.split(text.rstrip()))
00080 

Here is the caller graph for this function:

Definition at line 245 of file test_FSReSTMethod.py.

00245 
00246 def test_suite():
00247     return unittest.TestSuite((
00248         unittest.makeSuite(FSReSTMethodTests),
00249         unittest.makeSuite(FSReSTMethodCustomizationTests),
00250         ))

Here is the call graph for this function:


Variable Documentation

Initial value:
00001 """\
00002 <html>
00003 <body>
00004 
00005 <div class="document" id="title-goes-here">
00006 <h1 class="title">Title Goes Here</h1>
00007 <h2 class="subtitle" id="subhead-here">Subhead Here</h2>
00008 <p>And this is a paragraph,
00009     broken across lines.</p>
00010 
00011 </div>
00012 
00013 </body>
00014 </html>
00015 """

Definition at line 48 of file test_FSReSTMethod.py.

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

Definition at line 64 of file test_FSReSTMethod.py.

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

Definition at line 142 of file test_FSReSTMethod.py.

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

Definition at line 75 of file test_FSReSTMethod.py.

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

Definition at line 143 of file test_FSReSTMethod.py.