Back to index

python3.2  3.2.2
Public Member Functions
test.test_sax.XMLFilterBaseTest Class Reference

List of all members.

Public Member Functions

def test_filter_basic

Detailed Description

Definition at line 444 of file test_sax.py.


Member Function Documentation

Definition at line 445 of file test_sax.py.

00445 
00446     def test_filter_basic(self):
00447         result = StringIO()
00448         gen = XMLGenerator(result)
00449         filter = XMLFilterBase()
00450         filter.setContentHandler(gen)
00451 
00452         filter.startDocument()
00453         filter.startElement("doc", {})
00454         filter.characters("content")
00455         filter.ignorableWhitespace(" ")
00456         filter.endElement("doc")
00457         filter.endDocument()
00458 
00459         self.assertEqual(result.getvalue(), start + "<doc>content </doc>")
00460 
00461 # ===========================================================================
00462 #
00463 #   expatreader tests
00464 #
00465 # ===========================================================================

Here is the call graph for this function:


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