|
@@ -80,6 +80,9 @@ class TestUtilsHtml(TestCase):
|
|
|
('a<p a >b</p>c', 'abc'),
|
|
('a<p a >b</p>c', 'abc'),
|
|
|
('d<a:b c:d>e</p>f', 'def'),
|
|
('d<a:b c:d>e</p>f', 'def'),
|
|
|
('<strong>foo</strong><a href="http://example.com">bar</a>', 'foobar'),
|
|
('<strong>foo</strong><a href="http://example.com">bar</a>', 'foobar'),
|
|
|
|
|
+ # caused infinite loop on Pythons not patched with
|
|
|
|
|
+ # http://bugs.python.org/issue20288
|
|
|
|
|
+ ('&gotcha&#;<>', '&gotcha&#;<>'),
|
|
|
)
|
|
)
|
|
|
for value, output in items:
|
|
for value, output in items:
|
|
|
self.check_output(f, value, output)
|
|
self.check_output(f, value, output)
|