Back to index

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

List of all members.

Public Member Functions

def do
def test1
def test2
def test3
def test4
def test5
def do

Detailed Description

Definition at line 1162 of file test_text_html_text_moin_wiki.py.


Member Function Documentation

def test_text_html_text_moin_wiki.TestStrip.do (   self,
  cls,
  text,
  output 
) [inherited]

Definition at line 1151 of file test_text_html_text_moin_wiki.py.

01151 
01152     def do(self, cls, text, output):
01153         tree = converter.parse(self.request, text)
01154         cls().do(tree)
01155         out = StringIO()
01156         try:
01157             import xml.dom.ext
01158         except ImportError:
01159             py.test.skip('xml.dom.ext module is not available')
01160         xml.dom.ext.Print(tree, out)
01161         assert "<?xml version='1.0' encoding='UTF-8'?>%s" % output == out.getvalue().decode("utf-8")

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 1163 of file test_text_html_text_moin_wiki.py.

01163 
01164     def do(self, text, output):
01165         super(TestStripWhitespace, self).do(converter.strip_whitespace, text, output)

Here is the caller graph for this function:

Definition at line 1166 of file test_text_html_text_moin_wiki.py.

01166 
01167     def test1(self):
01168         test = ur"""
01169 <t/>
01170 """
01171         output = ur"""<t/>"""
01172         self.do(test, output)

Here is the call graph for this function:

Definition at line 1173 of file test_text_html_text_moin_wiki.py.

01173 
01174     def test2(self):
01175         py.test.skip('broken test')
01176         test = ur"""
01177 <t>
01178   <z/>
01179 </t>
01180 """
01181         output = ur"""<t><z/></t>"""
01182         self.do(test, output)

Here is the call graph for this function:

Definition at line 1183 of file test_text_html_text_moin_wiki.py.

01183 
01184     def test3(self):
01185         py.test.skip('broken test')
01186         test = ur"""
01187 <t>
01188   <z>test</z>
01189 </t>
01190 """
01191         output = ur"""<t><z>test</z></t>"""
01192         self.do(test, output)

Here is the call graph for this function:

Definition at line 1193 of file test_text_html_text_moin_wiki.py.

01193 
01194     def test4(self):
01195         test = ur"""<p>&nbsp;</p>"""
01196         output = ur""""""
01197         self.do(test, output)

Here is the call graph for this function:

Definition at line 1198 of file test_text_html_text_moin_wiki.py.

01198 
01199     def test5(self):
01200         test = ur"""<p>test </p>"""
01201         output = ur"""<p>test</p>"""
01202         self.do(test, output)

Here is the call graph for this function:


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