Back to index

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

List of all members.

Public Member Functions

def do
def testTable01
def testTable02
def testTable03
def testTable04
def testTable05
def testTable06
def testTable07
def testTable08
def testTable09
def testTable10
def testTable11
def testTable12
def testTable13
def testTable14
def testTable15
def do_convert_real

Detailed Description

Definition at line 1232 of file test_text_html_text_moin_wiki.py.


Member Function Documentation

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

Definition at line 1233 of file test_text_html_text_moin_wiki.py.

01233 
01234     def do(self, text, output):
01235         text = text.strip('\n')
01236         output = output.strip('\n')
01237         request = MinimalRequest(self.request)
01238         page = MinimalPage()
01239         out = self.do_convert_real([request, page.page_name, text])
01240         out = out.strip()
01241         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 1242 of file test_text_html_text_moin_wiki.py.

01242 
01243     def testTable01(self):
01244         # tests empty cells
01245         test = u"<table><tbody><tr><td>a</td><td></td></tr></tbody></table>"
01246         output = u"||a|| ||"
01247 
01248         self.do(test, output)

Here is the call graph for this function:

Definition at line 1249 of file test_text_html_text_moin_wiki.py.

01249 
01250     def testTable02(self):
01251         # tests empty cells by br (OOo cut and paste)
01252         test = u"<table><tbody><tr><td>a</td><td><br /></td></tr></tbody></table>"
01253         output = u"||a||<<BR>>||"
01254 
01255         self.do(test, output)

Here is the call graph for this function:

Definition at line 1256 of file test_text_html_text_moin_wiki.py.

01256 
01257     def testTable03(self):
01258         # tests linebreak in cells by br
01259         test = u"<table><tbody><tr><td>a<br />b</td></tr></tbody></table>"
01260         output = u"||a<<BR>>b||"
01261 
01262         self.do(test, output)

Here is the call graph for this function:

Definition at line 1263 of file test_text_html_text_moin_wiki.py.

01263 
01264     def testTable04(self):
01265         # tests linebreak in cells by br and formatting styles
01266         test = u"<table><tbody><tr><td><em>a</em><br /><u>b</u><br /><strike>c</strike></td></tr></tbody></table>"
01267         output = u"||''a''<<BR>>__b__<<BR>>--(c)--||"
01268 
01269         self.do(test, output)

Here is the call graph for this function:

Definition at line 1270 of file test_text_html_text_moin_wiki.py.

01270 
01271     def testTable05(self):
01272         # tests empty cells and formatting style strong
01273         test = u"""
01274 <table><tbody>
01275 <tr><td><strong>a</strong></td><td></td></tr>
01276 <tr><td></td><td><strong>b</strong></td></tr>
01277 </tbody></table>
01278 """
01279         output = u"""
01280 ||'''a'''|| ||
01281 || ||'''b'''||
01282 """
01283         self.do(test, output)

Here is the call graph for this function:

Definition at line 1284 of file test_text_html_text_moin_wiki.py.

01284 
01285     def testTable06(self):
01286         # tests linebreak in cells by br
01287         test = u"<table><tbody><tr><td>a<br /></td></tr></tbody></table>"
01288         output = u"||a<<BR>>||"
01289 
01290         self.do(test, output)

Here is the call graph for this function:

Definition at line 1291 of file test_text_html_text_moin_wiki.py.

01291 
01292     def testTable07(self):
01293         # tests empty cells from OOo and formatting style strong
01294         test = u"""
01295 <table><tbody>
01296 <tr><td><strong>a</strong></td><td><strong><br /></strong></td></tr>
01297 <tr><td><strong><br /></strong></td><td><strong>b</strong></td></tr>
01298 </tbody></table>
01299 """
01300 
01301         output = u"""
01302 ||'''a'''||''''''||
01303 ||''''''||'''b'''||
01304 """
01305 
01306         self.do(test, output)

Here is the call graph for this function:

Definition at line 1307 of file test_text_html_text_moin_wiki.py.

01307 
01308     def testTable08(self):
01309         # tests line break between two lines in formatted text
01310         test = u"<table><tbody><tr><td><strong>first line<br />second line</strong></td></tr></tbody></table>"
01311         output = u"||'''first line<<BR>>second line'''||"
01312 
01313         self.do(test, output)

Here is the call graph for this function:

Definition at line 1314 of file test_text_html_text_moin_wiki.py.

01314 
01315     def testTable09(self):
01316         # tests line break at beginning of line and formatted text
01317         test = u"<table><tbody><tr><td><strong><br />line</strong></td></tr></tbody></table>"
01318         output = u"||'''<<BR>>line'''||"

Definition at line 1319 of file test_text_html_text_moin_wiki.py.

01319 
01320     def testTable10(self):
01321         # tests line break at end of line and formatted text
01322         test = u"<table><tbody><tr><td><strong>line<br /></strong></td></tr></tbody></table>"
01323         output = u"||'''line<<BR>>'''||"

Definition at line 1324 of file test_text_html_text_moin_wiki.py.

01324 
01325     def testTable11(self):
01326         # tests line break at beginning before formatted text
01327         test = u"<table><tbody><tr><td><br /><strong>line</strong></td></tr></tbody></table>"
01328         output = u"||'<<BR>'''line'''||"

Definition at line 1329 of file test_text_html_text_moin_wiki.py.

01329 
01330     def testTable12(self):
01331         # tests line break after formatted text
01332         test = u"<table><tbody><tr><td><strong>line</strong><br /></td></tr></tbody></table>"
01333         output = u"||'''line'''<<BR>>||"

Definition at line 1334 of file test_text_html_text_moin_wiki.py.

01334 
01335     def testTable13(self):
01336         # tests formatted br
01337         test = u"<table><tbody><tr><td><strong><br /></strong></td></tr></tbody></table>"
01338         output = u"||''''''||"

Definition at line 1339 of file test_text_html_text_moin_wiki.py.

01339 
01340     def testTable14(self):
01341         # tests br
01342         test = u"<table><tbody><tr><td><br /></td></tr></tbody></table>"
01343         output = u"||<<BR>>||"

Definition at line 1344 of file test_text_html_text_moin_wiki.py.

01344 
01345     def testTable15(self):
01346         # tests many br
01347         test = u"<table><tbody><tr><td><br /><br /><br /></td></tr></tbody></table>"
01348         output = u"||<<BR>><<BR>><<BR>>||"
01349 
01350         self.do(test, output)

Here is the call graph for this function:


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