[Lxml-checkins] r44553 - lxml/branch/html/src/lxml/html/tests

ianb at codespeak.net ianb at codespeak.net
Tue Jun 26 23:08:05 CEST 2007


Author: ianb
Date: Tue Jun 26 23:08:03 2007
New Revision: 44553

Modified:
   lxml/branch/html/src/lxml/html/tests/test_autolink.txt
Log:
added some (already passing) tests for linking

Modified: lxml/branch/html/src/lxml/html/tests/test_autolink.txt
==============================================================================
--- lxml/branch/html/src/lxml/html/tests/test_autolink.txt	(original)
+++ lxml/branch/html/src/lxml/html/tests/test_autolink.txt	Tue Jun 26 23:08:03 2007
@@ -16,6 +16,12 @@
     ... the http://foobar.com links.</div>''')
     <div>The <b>great</b> thing is the <a href="http://link.com">http://link.com</a> links <i>and</i>
     the <a href="http://foobar.com">http://foobar.com</a> links.</div>
+    >>> print autolink_html('''
+    ... <div>Link: &lt;http://foobar.com&gt;</div>''')
+    <div>Link: &lt;<a href="http://foobar.com">http://foobar.com</a>&gt;</div>
+    >>> print autolink_html('''
+    ... <div>Link: (http://foobar.com)</div>''')
+    <div>Link: (<a href="http://foobar.com">http://foobar.com</a>)</div>
 
 Some cases that won't be caught (on purpose)::
 


More information about the lxml-checkins mailing list