Back to index

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

List of all members.

Public Member Functions

def do
def testList01
def do_convert_real

Detailed Description

Definition at line 1203 of file test_text_html_text_moin_wiki.py.


Member Function Documentation

def test_text_html_text_moin_wiki.TestConvertBrokenBrowser.do (   self,
  text,
  output 
)

Definition at line 1204 of file test_text_html_text_moin_wiki.py.

01204 
01205     def do(self, text, output):
01206         text = text.strip('\n')
01207         output = output.strip()
01208         request = MinimalRequest(self.request)
01209         page = MinimalPage()
01210         out = self.do_convert_real([request, page.page_name, text])
01211         out = out.strip()
01212 
01213         assert output == out

Here is the call graph for this function:

Here is the caller graph for this function:

def test_text_html_text_moin_wiki.TestBase.do_convert_real (   self,
  func_args,
  successful = True 
) [inherited]

Definition at line 26 of file test_text_html_text_moin_wiki.py.

00026 
00027     def do_convert_real(self, func_args, successful=True):
00028         try:
00029             ret = convert(*func_args)
00030         except error, e:
00031             if successful:
00032                 py.test.fail("fails with parse error: %s" % e)
00033             else:
00034                 return
00035         if successful:
00036             return ret
00037         else:
00038             py.test.fail("doesn't fail with parse error")
00039 

Here is the caller graph for this function:

Definition at line 1214 of file test_text_html_text_moin_wiki.py.

01214 
01215     def testList01(self):
01216         test = ur"""
01217 <ul>
01218 <li>test</li>
01219 <ul>
01220 <li>test</li>
01221 </ul>
01222 <li>test</li>
01223 </ul>
01224 """
01225         output = ur"""
01226  * test
01227   * test
01228  * test
01229 
01230 """
01231         self.do(test, output)

Here is the call graph for this function:


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