Back to index

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

List of all members.

Public Member Functions

def do
def testWikiWord01
def testNoWikiWord01
def testSmiley01
def do_convert_real

Detailed Description

Definition at line 1116 of file test_text_html_text_moin_wiki.py.


Member Function Documentation

Definition at line 1117 of file test_text_html_text_moin_wiki.py.

01117 
01118     def do(self, text, output):
01119         text = text.lstrip('\n')
01120         output = output.strip('\n')
01121         output = "<p>%s </p>" % output
01122         request = MinimalRequest(self.request)
01123         page = MinimalPage()
01124         formatter = Formatter(request)
01125         formatter.setPage(page)
01126         Parser(text, request).format(formatter)
01127         repeat = ''.join(request.result).strip('\n')
01128         #assert repeat == output
01129         out = self.do_convert_real([request, page.page_name, repeat])
01130         out = out.rstrip('\n')
01131         assert text == 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 1138 of file test_text_html_text_moin_wiki.py.

01138 
01139     def testNoWikiWord01(self):
01140         py.test.skip('broken test')
01141         test = ur"!WikiWord"
01142         output = ur"WikiWord"
01143         self.do(test, output)

Here is the call graph for this function:

Definition at line 1144 of file test_text_html_text_moin_wiki.py.

01144 
01145     def testSmiley01(self):
01146         py.test.skip('broken test')
01147         test = ur":-)"
01148         output = ur"""<img src="/wiki/modern/img/smile.png" alt=":-)" height="15" width="15">"""
01149         self.do(test, output)

Here is the call graph for this function:

Definition at line 1132 of file test_text_html_text_moin_wiki.py.

01132 
01133     def testWikiWord01(self):
01134         py.test.skip('broken test')
01135         test = ur"WikiWord"
01136         output = ur"""<a class="nonexistent" href="./WikiWord">WikiWord</a>"""
01137         self.do(test, output)

Here is the call graph for this function:


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