summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorscoder <none@none>2008-01-23 11:24:59 +0100
committerscoder <none@none>2008-01-23 11:24:59 +0100
commitcca39dfc56698d9b436ec49e357d108f4dae1169 (patch)
tree53018817eb16df2c5a7fac1b223fbb65ccda0a32 /src
parent1dad2de0ee73cbda2ed3bb0bf9b2b68363c7b6ee (diff)
downloadpython-lxml-cca39dfc56698d9b436ec49e357d108f4dae1169.tar.gz
[svn r3184] r3282@delle: sbehnel | 2008-01-21 22:23:44 +0100
fix doctests --HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/lxml/html/tests/test_clean.txt53
1 files changed, 24 insertions, 29 deletions
diff --git a/src/lxml/html/tests/test_clean.txt b/src/lxml/html/tests/test_clean.txt
index f9fc8947..255c5a1f 100644
--- a/src/lxml/html/tests/test_clean.txt
+++ b/src/lxml/html/tests/test_clean.txt
@@ -3,29 +3,28 @@
>>> from lxml.html import usedoctest
>>> doc = '''<html>
-... <head>
-... <script type="text/javascript" src="evil-site"></script>
-... <link rel="alternate" type="text/rss" src="evil-rss">
-... <style>
-... body {background-image: url(javascript:do_evil)};
-... div {color: expression(evil)};
-... </style>
-... </head>
-... <body onload="evil_function()">
-... <!-- I am interpreted for EVIL! -->
-... <a href="javascript:evil_function()">a link</a>
-... <a href="#" onclick="evil_function()">another link</a>
-... <p onclick="evil_function()">a paragraph</p>
-... <div style="display: none">secret EVIL!</div>
-... <object> of EVIL! </object>
-... <iframe src="evil-site"></iframe>
-... <form action="evil-site">
-... Password: <input type="password" name="password">
-... </form>
-... <blink>annoying EVIL!</blink>
-... <a href="evil-site">spam spam SPAM!</a>
-... <image src="evil!">
-... </body>
+... <head>
+... <script type="text/javascript" src="evil-site"></script>
+... <link rel="alternate" type="text/rss" src="evil-rss">
+... <style>
+... body {background-image: url(javascript:do_evil)};
+... div {color: expression(evil)};
+... </style>
+... </head>
+... <body onload="evil_function()">
+... <!-- I am interpreted for EVIL! -->
+... <a href="javascript:evil_function()">a link</a>
+... <a href="#" onclick="evil_function()">another link</a>
+... <p onclick="evil_function()">a paragraph</p>
+... <div style="display: none">secret EVIL!</div>
+... <object> of EVIL! </object>
+... <iframe src="evil-site"></iframe>
+... <form action="evil-site">
+... Password: <input type="password" name="password">
+... </form>
+... <a href="evil-site">spam spam SPAM!</a>
+... <img src="evil!">
+... </body>
... </html>'''
>>> print doc
@@ -49,9 +48,8 @@
<form action="evil-site">
Password: <input type="password" name="password">
</form>
- <blink>annoying EVIL!</blink>
<a href="evil-site">spam spam SPAM!</a>
- <image src="evil!">
+ <img src="evil!">
</body>
</html>
@@ -76,9 +74,8 @@
<form action="evil-site">
Password: <input type="password" name="password">
</form>
- <blink>annoying EVIL!</blink>
<a href="evil-site">spam spam SPAM!</a>
- <image src="evil!">
+ <img src="evil!">
</body>
</html>
@@ -94,7 +91,6 @@
<div style="display: none">secret EVIL!</div>
of EVIL!
Password:
- annoying EVIL!
<a href="evil-site">spam spam SPAM!</a>
<img src="evil!">
</body>
@@ -112,7 +108,6 @@
<div>secret EVIL!</div>
of EVIL!
Password:
- annoying EVIL!
<a href="evil-site" rel="nofollow">spam spam SPAM!</a>
<img src="evil!">
</body>