Back to index

moin  1.9.0~rc2
Public Member Functions | Private Member Functions
test_text_creole.TestEscapeHTML Class Reference
Inheritance diagram for test_text_creole.TestEscapeHTML:
Inheritance graph
[legend]
Collaboration diagram for test_text_creole.TestEscapeHTML:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def testEscapeInTT
def testEscapeInPre
def testEscapeInPreHashbang
def testEscapeInPythonCodeArea
def testEscapeInGetTextMacro
def testEscapeInGetTextUnFormatted
def parse

Private Member Functions

def _test

Detailed Description

Definition at line 183 of file test_text_creole.py.


Member Function Documentation

def test_text_creole.TestEscapeHTML._test (   self,
  test 
) [private]

Definition at line 236 of file test_text_creole.py.

00236 
00237     def _test(self, test):
00238         expected = r'<escape-me>'
00239         result = self.parse(test)
00240         assert re.search(expected, result)
00241 
00242 

Here is the call graph for this function:

Here is the caller graph for this function:

def test_text_creole.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_creole.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         request.page = page
00043         parser = CreoleParser(body, request, line_anchors=False)
00044         formatter.startContent('') # needed for _include_stack init
00045         output = request.redirectedOutput(parser.format, formatter)
00046         formatter.endContent('')
00047         return output
00048 

Here is the call graph for this function:

parser.wiki: escape html markup in GetText macro 

Definition at line 214 of file test_text_creole.py.

00214 
00215     def testEscapeInGetTextMacro(self):
00216         """ parser.wiki: escape html markup in GetText macro """
00217         test = u"text <<GetText(<escape-me>)>> text"
00218         self._test(test)
00219 
00220 # Getting double escaping
00221 #
00222 #    def testEscapeInGetTextFormatted(self):
00223 #        """ parser.wiki: escape html markup in getText formatted call """
00224 #        test = self.request.getText('<escape-me>', wiki=True)
00225 #        self._test(test)
00226 #
00227 #    def testEscapeInGetTextFormatedLink(self):
00228 #        """ parser.wiki: escape html markup in getText formatted call with link """
00229 #        test = self.request.getText('[[<escape-me>]]', wiki=True)
00230 #        self._test(test)

Here is the call graph for this function:

parser.wiki: escape html markup in getText non formatted call 

Definition at line 231 of file test_text_creole.py.

00231 
00232     def testEscapeInGetTextUnFormatted(self):
00233         """ parser.wiki: escape html markup in getText non formatted call """
00234         test = self.request.getText('<escape-me>', wiki=False)
00235         self._test(test)

Here is the call graph for this function:

parser.wiki: escape html markup in pre 

Definition at line 190 of file test_text_creole.py.

00190 
00191     def testEscapeInPre(self):
00192         """ parser.wiki: escape html markup in pre """
00193         test = '''{{{
00194 <escape-me>
00195 }}}
00196 '''
00197         self._test(test)

Here is the call graph for this function:

parser.wiki: escape html markup in pre with hashbang 

Definition at line 198 of file test_text_creole.py.

00198 
00199     def testEscapeInPreHashbang(self):
00200         """ parser.wiki: escape html markup in pre with hashbang """
00201         test = '''{{{#!
00202 <escape-me>
00203 }}}
00204 '''
00205         self._test(test)

Here is the call graph for this function:

parser.wiki: escape html markup in python code area 

Definition at line 206 of file test_text_creole.py.

00206 
00207     def testEscapeInPythonCodeArea(self):
00208         """ parser.wiki: escape html markup in python code area """
00209         test = '''{{{#!python
00210 #<escape-me>
00211 }}}
00212 '''
00213         self._test(test)

Here is the call graph for this function:

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

Definition at line 185 of file test_text_creole.py.

00185 
00186     def testEscapeInTT(self):
00187         """ parser.wiki: escape html markup in {{{tt}}} """
00188         test = 'text {{{<escape-me>}}} text\n'
00189         self._test(test)

Here is the call graph for this function:


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