Back to index

moin  1.9.0~rc2
Public Member Functions
test_text_moin_wiki.TestEscapeWikiTableMarkup Class Reference
Inheritance diagram for test_text_moin_wiki.TestEscapeWikiTableMarkup:
Inheritance graph
[legend]
Collaboration diagram for test_text_moin_wiki.TestEscapeWikiTableMarkup:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def testEscapeInTT
def testEscapeInTT2
def testEscapeInPre
def testEscapeInPreHashbang
def testEscapeInPythonCodeArea
def do
def parse

Detailed Description

Definition at line 304 of file test_text_moin_wiki.py.


Member Function Documentation

Definition at line 340 of file test_text_moin_wiki.py.

00340 
00341     def do(self, test):
00342         expected = r'<tablewidth="80">'
00343         result = self.parse(test)
00344         assert re.search(expected, result)
00345 

Here is the call graph for this function:

Here is the caller graph for this function:

def test_text_moin_wiki.ParserTestCase.parse (   self,
  body 
) [inherited]
Parse body and return html

Create a page with body, then parse it and format using html formatter

Definition at line 26 of file test_text_moin_wiki.py.

00026 
00027     def parse(self, body):
00028         """Parse body and return html
00029 
00030         Create a page with body, then parse it and format using html formatter
00031         """
00032         request = self.request
00033         assert body is not None
00034         request.reset()
00035         page = Page(request, PAGENAME)
00036         page.hilite_re = None
00037         page.set_raw_body(body)
00038         formatter = HtmlFormatter(request)
00039         formatter.setPage(page)
00040         page.formatter = formatter
00041         request.formatter = formatter
00042         parser = WikiParser(body, request, line_anchors=False)
00043         formatter.startContent('') # needed for _include_stack init
00044         output = request.redirectedOutput(parser.format, formatter)
00045         formatter.endContent('')
00046         return output
00047 

Here is the call graph for this function:

Here is the caller graph for this function:

parser.wiki: escape wiki table  markup in pre 

Definition at line 316 of file test_text_moin_wiki.py.

00316 
00317     def testEscapeInPre(self):
00318         """ parser.wiki: escape wiki table  markup in pre """
00319         test = '''{{{
00320 ||<tablewidth="80"> Table ||
00321 }}}
00322 '''
00323         self.do(test)

Here is the call graph for this function:

parser.wiki: escape wiki table  markup in pre with hashbang 

Definition at line 324 of file test_text_moin_wiki.py.

00324 
00325     def testEscapeInPreHashbang(self):
00326         """ parser.wiki: escape wiki table  markup in pre with hashbang """
00327         test = '''{{{#!
00328 ||<tablewidth="80"> Table ||
00329 }}}
00330 '''
00331         self.do(test)

Here is the call graph for this function:

parser.wiki: escape wiki table markup in python code area 

Definition at line 332 of file test_text_moin_wiki.py.

00332 
00333     def testEscapeInPythonCodeArea(self):
00334         """ parser.wiki: escape wiki table markup in python code area """
00335         test = '''{{{#!python
00336 # ||<tablewidth="80"> Table ||
00337 }}}
00338 '''
00339         self.do(test)

Here is the call graph for this function:

parser.wiki: escape wiki table markup in `tt` 

Definition at line 306 of file test_text_moin_wiki.py.

00306 
00307     def testEscapeInTT(self):
00308         """ parser.wiki: escape wiki table markup in `tt` """
00309         test = 'text `||<tablewidth="80"> Table ||` text\n'
00310         self.do(test)

Here is the call graph for this function:

parser.wiki: escape wiki table markup in {{{tt}}} 

Definition at line 311 of file test_text_moin_wiki.py.

00311 
00312     def testEscapeInTT2(self):
00313         """ parser.wiki: escape wiki table markup in {{{tt}}} """
00314         test = 'text {{{||<tablewidth="80"> Table ||}}} text\n'
00315         self.do(test)

Here is the call graph for this function:


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