Back to index

python3.2  3.2.2
Public Member Functions
test.test_html.HtmlTests Class Reference

List of all members.

Public Member Functions

def test_escape

Detailed Description

Definition at line 10 of file

Member Function Documentation

Definition at line 11 of file

00012     def test_escape(self):
00013         self.assertEqual(
00014             html.escape('\'<script>"&foo;"</script>\''),
00015             '&#x27;&lt;script&gt;&quot;&amp;foo;&quot;&lt;/script&gt;&#x27;')
00016         self.assertEqual(
00017             html.escape('\'<script>"&foo;"</script>\'', False),
00018             '\'&lt;script&gt;"&amp;foo;"&lt;/script&gt;\'')

Here is the call graph for this function:

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