Back to index

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

List of all members.

Public Member Functions

def test_escape_basic
def test_escape_all
def test_escape_extra
def test_unescape_basic
def test_unescape_all
def test_unescape_extra
def test_unescape_amp_extra
def test_quoteattr_basic
def test_single_quoteattr
def test_double_quoteattr
def test_single_double_quoteattr
def test_make_parser

Detailed Description

Definition at line 107 of file test_sax.py.


Member Function Documentation

Definition at line 144 of file test_sax.py.

00144 
00145     def test_double_quoteattr(self):
00146         self.assertEqual(quoteattr("Includes 'single' quotes"),
00147                          "\"Includes 'single' quotes\"")

Here is the call graph for this function:

Definition at line 112 of file test_sax.py.

00112 
00113     def test_escape_all(self):
00114         self.assertEqual(escape("<Donald Duck & Co>"),
00115                          "&lt;Donald Duck &amp; Co&gt;")

Here is the call graph for this function:

Definition at line 109 of file test_sax.py.

00109 
00110     def test_escape_basic(self):
00111         self.assertEqual(escape("Donald Duck & Co"), "Donald Duck &amp; Co")

Here is the call graph for this function:

Definition at line 116 of file test_sax.py.

00116 
00117     def test_escape_extra(self):
00118         self.assertEqual(escape("Hei på deg", {"å" : "&aring;"}),
00119                          "Hei p&aring; deg")

Here is the call graph for this function:

Definition at line 153 of file test_sax.py.

00153 
00154     def test_make_parser(self):
00155         # Creating a parser should succeed - it should fall back
00156         # to the expatreader
00157         p = make_parser(['xml.parsers.no_such_parser'])
00158 
00159 
00160 # ===== XMLGenerator

Here is the call graph for this function:

Definition at line 136 of file test_sax.py.

00136 
00137     def test_quoteattr_basic(self):
00138         self.assertEqual(quoteattr("Donald Duck & Co"),
00139                          '"Donald Duck &amp; Co"')

Here is the call graph for this function:

Definition at line 148 of file test_sax.py.

00148 
00149     def test_single_double_quoteattr(self):
00150         self.assertEqual(quoteattr("Includes 'single' and \"double\" quotes"),
00151                          "\"Includes 'single' and &quot;double&quot; quotes\"")

Here is the call graph for this function:

Definition at line 140 of file test_sax.py.

00140 
00141     def test_single_quoteattr(self):
00142         self.assertEqual(quoteattr('Includes "double" quotes'),
00143                          '\'Includes "double" quotes\'')

Here is the call graph for this function:

Definition at line 124 of file test_sax.py.

00124 
00125     def test_unescape_all(self):
00126         self.assertEqual(unescape("&lt;Donald Duck &amp; Co&gt;"),
00127                          "<Donald Duck & Co>")

Here is the call graph for this function:

Definition at line 132 of file test_sax.py.

00132 
00133     def test_unescape_amp_extra(self):
00134         self.assertEqual(unescape("&amp;foo;", {"&foo;": "splat"}), "&foo;")

Here is the call graph for this function:

Definition at line 121 of file test_sax.py.

00121 
00122     def test_unescape_basic(self):
00123         self.assertEqual(unescape("Donald Duck &amp; Co"), "Donald Duck & Co")

Here is the call graph for this function:

Definition at line 128 of file test_sax.py.

00128 
00129     def test_unescape_extra(self):
00130         self.assertEqual(unescape("Hei på deg", {"å" : "&aring;"}),
00131                          "Hei p&aring; deg")

Here is the call graph for this function:


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