Created
August 6, 2014 13:35
-
-
Save tomgross/d059653bfe3948521d8f to your computer and use it in GitHub Desktop.
Test failures of PortalTransforms with lxml cleaner
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Failure in test testPolicy (Products.PortalTransforms.tests.test_engine.TestEngine) | |
Traceback (most recent call last): | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 327, in run | |
testMethod() | |
File "/home/tom/projects/buildout.coredev/src/Products.PortalTransforms/Products/PortalTransforms/tests/test_engine.py", line 206, in testPolicy | |
self.assertEqual(cache.getData(), '<p>this is safe</p>') | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 511, in assertEqual | |
assertion_func(first, second, msg=msg) | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 504, in _baseAssertEqual | |
raise self.failureException(msg) | |
AssertionError: '<div><p>this is safe</p></div>' != '<p>this is safe</p>' | |
45/121 (37.2%) | |
Failure in test testSame (Products.PortalTransforms.tests.test_transforms.TransformTestSubclass) | |
Traceback (most recent call last): | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 327, in run | |
testMethod() | |
File "/home/tom/projects/buildout.coredev/src/Products.PortalTransforms/Products/PortalTransforms/tests/test_transforms.py", line 76, in testSame | |
self.do_convert(filename=self.input) | |
File "/home/tom/projects/buildout.coredev/src/Products.PortalTransforms/Products/PortalTransforms/tests/test_transforms.py", line 68, in do_convert | |
got_start, expected_start, self.transform.name(), self.input)) | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 511, in assertEqual | |
assertion_func(first, second, msg=msg) | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 504, in _baseAssertEqual | |
raise self.failureException(msg) | |
AssertionError: [<div>Test page for s] | |
!= | |
[<h1>Test page</h1><t] | |
IN safe_html(/home/tom/projects/buildout.coredev/src/Products.PortalTransforms/Products/PortalTransforms/tests/input/test_safehtml.html) | |
46/121 (38.0%) | |
Failure in test testSameNoFilename (Products.PortalTransforms.tests.test_transforms.TransformTestSubclass) | |
Traceback (most recent call last): | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 327, in run | |
testMethod() | |
File "/home/tom/projects/buildout.coredev/src/Products.PortalTransforms/Products/PortalTransforms/tests/test_transforms.py", line 82, in testSameNoFilename | |
self.do_convert() | |
File "/home/tom/projects/buildout.coredev/src/Products.PortalTransforms/Products/PortalTransforms/tests/test_transforms.py", line 68, in do_convert | |
got_start, expected_start, self.transform.name(), self.input)) | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 511, in assertEqual | |
assertion_func(first, second, msg=msg) | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 504, in _baseAssertEqual | |
raise self.failureException(msg) | |
AssertionError: [<div>Test page for s] | |
!= | |
[<h1>Test page</h1><t] | |
IN safe_html(/home/tom/projects/buildout.coredev/src/Products.PortalTransforms/Products/PortalTransforms/tests/input/test_safehtml.html) | |
78/121 (64.5%) | |
Failure in test test_charref_attributes (Products.PortalTransforms.tests.test_transforms.SafeHtmlTransformsTest) | |
Traceback (most recent call last): | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 327, in run | |
testMethod() | |
File "/home/tom/projects/buildout.coredev/src/Products.PortalTransforms/Products/PortalTransforms/tests/test_transforms.py", line 181, in test_charref_attributes | |
self.assertEqual(data.getData(), orig) | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 511, in assertEqual | |
assertion_func(first, second, msg=msg) | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 504, in _baseAssertEqual | |
raise self.failureException(msg) | |
AssertionError: '<a href="m">foo</a>' != '<a href="m">foo</a>' | |
79/121 (65.3%) | |
Failure in test test_charref_data (Products.PortalTransforms.tests.test_transforms.SafeHtmlTransformsTest) | |
Traceback (most recent call last): | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 327, in run | |
testMethod() | |
File "/home/tom/projects/buildout.coredev/src/Products.PortalTransforms/Products/PortalTransforms/tests/test_transforms.py", line 191, in test_charref_data | |
self.assertEqual(data.getData(), orig) | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 511, in assertEqual | |
assertion_func(first, second, msg=msg) | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 504, in _baseAssertEqual | |
raise self.failureException(msg) | |
AssertionError: '<p>bar m foo</p>' != '<p>bar m foo</p>' | |
80/121 (66.1%) | |
Failure in test test_entityiref_attributes (Products.PortalTransforms.tests.test_transforms.SafeHtmlTransformsTest) | |
Traceback (most recent call last): | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 327, in run | |
testMethod() | |
File "/home/tom/projects/buildout.coredev/src/Products.PortalTransforms/Products/PortalTransforms/tests/test_transforms.py", line 176, in test_entityiref_attributes | |
self.assertEqual(data.getData(), orig) | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 511, in assertEqual | |
assertion_func(first, second, msg=msg) | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 504, in _baseAssertEqual | |
raise self.failureException(msg) | |
AssertionError: '<a href="%C3%BC">foo</a>' != '<a href="ü">foo</a>' | |
81/121 (66.9%) | |
Failure in test test_entityiref_data (Products.PortalTransforms.tests.test_transforms.SafeHtmlTransformsTest) | |
Traceback (most recent call last): | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 327, in run | |
testMethod() | |
File "/home/tom/projects/buildout.coredev/src/Products.PortalTransforms/Products/PortalTransforms/tests/test_transforms.py", line 186, in test_entityiref_data | |
self.assertEqual(data.getData(), orig) | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 511, in assertEqual | |
assertion_func(first, second, msg=msg) | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 504, in _baseAssertEqual | |
raise self.failureException(msg) | |
AssertionError: '<p>foo \xc3\x83\xc2\xbc bar</p>' != '<p>foo ü bar</p>' | |
83/121 (68.6%) | |
Failure in test test_1 (Products.PortalTransforms.tests.test_xss.TestXSSFilter) | |
Traceback (most recent call last): | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 327, in run | |
testMethod() | |
File "/home/tom/projects/buildout.coredev/src/Products.PortalTransforms/Products/PortalTransforms/tests/test_xss.py", line 20, in test_1 | |
self.doTest(data_in, data_out) | |
File "/home/tom/projects/buildout.coredev/src/Products.PortalTransforms/Products/PortalTransforms/tests/test_xss.py", line 15, in doTest | |
self.assertEqual(data_out, html.getData()) | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 511, in assertEqual | |
assertion_func(first, second, msg=msg) | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 504, in _baseAssertEqual | |
raise self.failureException(msg) | |
AssertionError: '<img />' != '<div><img src=""></div>' | |
86/121 (71.1%) | |
Failure in test test_12 (Products.PortalTransforms.tests.test_xss.TestXSSFilter) | |
Traceback (most recent call last): | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 327, in run | |
testMethod() | |
File "/home/tom/projects/buildout.coredev/src/Products.PortalTransforms/Products/PortalTransforms/tests/test_xss.py", line 81, in test_12 | |
self.doTest(data_in, data_out) | |
File "/home/tom/projects/buildout.coredev/src/Products.PortalTransforms/Products/PortalTransforms/tests/test_xss.py", line 15, in doTest | |
self.assertEqual(data_out, html.getData()) | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 511, in assertEqual | |
assertion_func(first, second, msg=msg) | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 504, in _baseAssertEqual | |
raise self.failureException(msg) | |
AssertionError: '<img />' != '<img src="">' | |
87/121 (71.9%) | |
Failure in test test_13 (Products.PortalTransforms.tests.test_xss.TestXSSFilter) | |
Traceback (most recent call last): | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 327, in run | |
testMethod() | |
File "/home/tom/projects/buildout.coredev/src/Products.PortalTransforms/Products/PortalTransforms/tests/test_xss.py", line 88, in test_13 | |
self.doTest(data_in, data_out) | |
File "/home/tom/projects/buildout.coredev/src/Products.PortalTransforms/Products/PortalTransforms/tests/test_xss.py", line 15, in doTest | |
self.assertEqual(data_out, html.getData()) | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 511, in assertEqual | |
assertion_func(first, second, msg=msg) | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 504, in _baseAssertEqual | |
raise self.failureException(msg) | |
AssertionError: '<img />' != '<img src="">' | |
88/121 (72.7%) | |
Failure in test test_14 (Products.PortalTransforms.tests.test_xss.TestXSSFilter) | |
Traceback (most recent call last): | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 327, in run | |
testMethod() | |
File "/home/tom/projects/buildout.coredev/src/Products.PortalTransforms/Products/PortalTransforms/tests/test_xss.py", line 93, in test_14 | |
self.doTest(data_in, data_out) | |
File "/home/tom/projects/buildout.coredev/src/Products.PortalTransforms/Products/PortalTransforms/tests/test_xss.py", line 15, in doTest | |
self.assertEqual(data_out, html.getData()) | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 511, in assertEqual | |
assertion_func(first, second, msg=msg) | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 504, in _baseAssertEqual | |
raise self.failureException(msg) | |
AssertionError: '<a>test</a>' != '<a href="">test</a>' | |
92/121 (76.0%) | |
Failure in test test_18 (Products.PortalTransforms.tests.test_xss.TestXSSFilter) | |
Traceback (most recent call last): | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 327, in run | |
testMethod() | |
File "/home/tom/projects/buildout.coredev/src/Products.PortalTransforms/Products/PortalTransforms/tests/test_xss.py", line 117, in test_18 | |
self.doTest(data_in, data_out) | |
File "/home/tom/projects/buildout.coredev/src/Products.PortalTransforms/Products/PortalTransforms/tests/test_xss.py", line 15, in doTest | |
self.assertEqual(data_out, html.getData()) | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 511, in assertEqual | |
assertion_func(first, second, msg=msg) | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 504, in _baseAssertEqual | |
raise self.failureException(msg) | |
AssertionError: '<div style="width: 14px;">div</div>' != '<div>div</div>' | |
94/121 (77.7%) | |
Failure in test test_2 (Products.PortalTransforms.tests.test_xss.TestXSSFilter) | |
Traceback (most recent call last): | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 327, in run | |
testMethod() | |
File "/home/tom/projects/buildout.coredev/src/Products.PortalTransforms/Products/PortalTransforms/tests/test_xss.py", line 25, in test_2 | |
self.doTest(data_in, data_out) | |
File "/home/tom/projects/buildout.coredev/src/Products.PortalTransforms/Products/PortalTransforms/tests/test_xss.py", line 15, in doTest | |
self.assertEqual(data_out, html.getData()) | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 511, in assertEqual | |
assertion_func(first, second, msg=msg) | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 504, in _baseAssertEqual | |
raise self.failureException(msg) | |
AssertionError: '<img />' != '<img src="">' | |
95/121 (78.5%) | |
Failure in test test_20 (Products.PortalTransforms.tests.test_xss.TestXSSFilter) | |
Traceback (most recent call last): | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 327, in run | |
testMethod() | |
File "/home/tom/projects/buildout.coredev/src/Products.PortalTransforms/Products/PortalTransforms/tests/test_xss.py", line 127, in test_20 | |
self.doTest(data_in, data_out) | |
File "/home/tom/projects/buildout.coredev/src/Products.PortalTransforms/Products/PortalTransforms/tests/test_xss.py", line 15, in doTest | |
self.assertEqual(data_out, html.getData()) | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 511, in assertEqual | |
assertion_func(first, second, msg=msg) | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 504, in _baseAssertEqual | |
raise self.failureException(msg) | |
AssertionError: '<img src="http://www.headnet.dk/log.jpg" />' != '<img src="http://www.headnet.dk/log.jpg">' | |
96/121 (79.3%) | |
Failure in test test_21 (Products.PortalTransforms.tests.test_xss.TestXSSFilter) | |
Traceback (most recent call last): | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 327, in run | |
testMethod() | |
File "/home/tom/projects/buildout.coredev/src/Products.PortalTransforms/Products/PortalTransforms/tests/test_xss.py", line 132, in test_21 | |
self.doTest(data_in, data_out) | |
File "/home/tom/projects/buildout.coredev/src/Products.PortalTransforms/Products/PortalTransforms/tests/test_xss.py", line 15, in doTest | |
self.assertEqual(data_out, html.getData()) | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 511, in assertEqual | |
assertion_func(first, second, msg=msg) | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 504, in _baseAssertEqual | |
raise self.failureException(msg) | |
AssertionError: 'bla bla bla' != '<div>bla bla bla</div>' | |
97/121 (80.2%) | |
Failure in test test_22 (Products.PortalTransforms.tests.test_xss.TestXSSFilter) | |
Traceback (most recent call last): | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 327, in run | |
testMethod() | |
File "/home/tom/projects/buildout.coredev/src/Products.PortalTransforms/Products/PortalTransforms/tests/test_xss.py", line 137, in test_22 | |
self.doTest(data_in, data_out) | |
File "/home/tom/projects/buildout.coredev/src/Products.PortalTransforms/Products/PortalTransforms/tests/test_xss.py", line 15, in doTest | |
self.assertEqual(data_out, html.getData()) | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 511, in assertEqual | |
assertion_func(first, second, msg=msg) | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 504, in _baseAssertEqual | |
raise self.failureException(msg) | |
AssertionError: '<script>alert("XSS");</script>' != '<p>script>alert("XSS");/script></p>' | |
98/121 (81.0%) | |
Failure in test test_23 (Products.PortalTransforms.tests.test_xss.TestXSSFilter) | |
Traceback (most recent call last): | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 327, in run | |
testMethod() | |
File "/home/tom/projects/buildout.coredev/src/Products.PortalTransforms/Products/PortalTransforms/tests/test_xss.py", line 142, in test_23 | |
self.doTest(data_in, data_out) | |
File "/home/tom/projects/buildout.coredev/src/Products.PortalTransforms/Products/PortalTransforms/tests/test_xss.py", line 15, in doTest | |
self.assertEqual(data_out, html.getData()) | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 511, in assertEqual | |
assertion_func(first, second, msg=msg) | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 504, in _baseAssertEqual | |
raise self.failureException(msg) | |
AssertionError: '<a>click me</a>' != '<a href="javascript&#0:alert(\'1\');">click me</a>' | |
99/121 (81.8%) | |
Failure in test test_24 (Products.PortalTransforms.tests.test_xss.TestXSSFilter) | |
Traceback (most recent call last): | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 327, in run | |
testMethod() | |
File "/home/tom/projects/buildout.coredev/src/Products.PortalTransforms/Products/PortalTransforms/tests/test_xss.py", line 147, in test_24 | |
self.doTest(data_in, data_out) | |
File "/home/tom/projects/buildout.coredev/src/Products.PortalTransforms/Products/PortalTransforms/tests/test_xss.py", line 15, in doTest | |
self.assertEqual(data_out, html.getData()) | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 511, in assertEqual | |
assertion_func(first, second, msg=msg) | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 504, in _baseAssertEqual | |
raise self.failureException(msg) | |
AssertionError: '<a>click me</a>' != '<a href="">click me</a>' | |
100/121 (82.6%) | |
Failure in test test_25 (Products.PortalTransforms.tests.test_xss.TestXSSFilter) | |
Traceback (most recent call last): | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 327, in run | |
testMethod() | |
File "/home/tom/projects/buildout.coredev/src/Products.PortalTransforms/Products/PortalTransforms/tests/test_xss.py", line 152, in test_25 | |
self.doTest(data_in, data_out) | |
File "/home/tom/projects/buildout.coredev/src/Products.PortalTransforms/Products/PortalTransforms/tests/test_xss.py", line 15, in doTest | |
self.assertEqual(data_out, html.getData()) | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 511, in assertEqual | |
assertion_func(first, second, msg=msg) | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 504, in _baseAssertEqual | |
raise self.failureException(msg) | |
AssertionError: '' != '<p>click me</p>' | |
102/121 (84.3%) | |
Failure in test test_27 (Products.PortalTransforms.tests.test_xss.TestXSSFilter) | |
Traceback (most recent call last): | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 327, in run | |
testMethod() | |
File "/home/tom/projects/buildout.coredev/src/Products.PortalTransforms/Products/PortalTransforms/tests/test_xss.py", line 162, in test_27 | |
self.doTest(data_in, data_out) | |
File "/home/tom/projects/buildout.coredev/src/Products.PortalTransforms/Products/PortalTransforms/tests/test_xss.py", line 15, in doTest | |
self.assertEqual(data_out, html.getData()) | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 511, in assertEqual | |
assertion_func(first, second, msg=msg) | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 504, in _baseAssertEqual | |
raise self.failureException(msg) | |
AssertionError: '<a>click me</a>' != '<a href="javascript&colon;alert(1)">click me</a>' | |
103/121 (85.1%) | |
Failure in test test_28 (Products.PortalTransforms.tests.test_xss.TestXSSFilter) | |
Traceback (most recent call last): | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 327, in run | |
testMethod() | |
File "/home/tom/projects/buildout.coredev/src/Products.PortalTransforms/Products/PortalTransforms/tests/test_xss.py", line 167, in test_28 | |
self.doTest(data_in, data_out) | |
File "/home/tom/projects/buildout.coredev/src/Products.PortalTransforms/Products/PortalTransforms/tests/test_xss.py", line 15, in doTest | |
self.assertEqual(data_out, html.getData()) | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 511, in assertEqual | |
assertion_func(first, second, msg=msg) | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 504, in _baseAssertEqual | |
raise self.failureException(msg) | |
AssertionError: '<a style="-o-link:attr(x);-o-link-source:current">hey</a>' != '<a>hey</a>' | |
104/121 (86.0%) | |
Failure in test test_29 (Products.PortalTransforms.tests.test_xss.TestXSSFilter) | |
Traceback (most recent call last): | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 327, in run | |
testMethod() | |
File "/home/tom/projects/buildout.coredev/src/Products.PortalTransforms/Products/PortalTransforms/tests/test_xss.py", line 172, in test_29 | |
self.doTest(data_in, data_out) | |
File "/home/tom/projects/buildout.coredev/src/Products.PortalTransforms/Products/PortalTransforms/tests/test_xss.py", line 15, in doTest | |
self.assertEqual(data_out, html.getData()) | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 511, in assertEqual | |
assertion_func(first, second, msg=msg) | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 504, in _baseAssertEqual | |
raise self.failureException(msg) | |
AssertionError: '<meta name="Description" http-equiv="refresh" />' != '<div></div>' | |
105/121 (86.8%) | |
Failure in test test_3 (Products.PortalTransforms.tests.test_xss.TestXSSFilter) | |
Traceback (most recent call last): | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 327, in run | |
testMethod() | |
File "/home/tom/projects/buildout.coredev/src/Products.PortalTransforms/Products/PortalTransforms/tests/test_xss.py", line 30, in test_3 | |
self.doTest(data_in, data_out) | |
File "/home/tom/projects/buildout.coredev/src/Products.PortalTransforms/Products/PortalTransforms/tests/test_xss.py", line 15, in doTest | |
self.assertEqual(data_out, html.getData()) | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 511, in assertEqual | |
assertion_func(first, second, msg=msg) | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 504, in _baseAssertEqual | |
raise self.failureException(msg) | |
AssertionError: '<img />' != '<div><img src=""></div>' | |
106/121 (87.6%) | |
Failure in test test_30 (Products.PortalTransforms.tests.test_xss.TestXSSFilter) | |
Traceback (most recent call last): | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 327, in run | |
testMethod() | |
File "/home/tom/projects/buildout.coredev/src/Products.PortalTransforms/Products/PortalTransforms/tests/test_xss.py", line 177, in test_30 | |
self.doTest(data_in, data_out) | |
File "/home/tom/projects/buildout.coredev/src/Products.PortalTransforms/Products/PortalTransforms/tests/test_xss.py", line 15, in doTest | |
self.assertEqual(data_out, html.getData()) | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 511, in assertEqual | |
assertion_func(first, second, msg=msg) | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 504, in _baseAssertEqual | |
raise self.failureException(msg) | |
AssertionError: '<meta name="Description" http-equiv="refresh" />' != '<div></div>' | |
109/121 (90.1%) | |
Failure in test test_33 (Products.PortalTransforms.tests.test_xss.TestXSSFilter) | |
Traceback (most recent call last): | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 327, in run | |
testMethod() | |
File "/home/tom/projects/buildout.coredev/src/Products.PortalTransforms/Products/PortalTransforms/tests/test_xss.py", line 192, in test_33 | |
self.doTest(data_in, data_out) | |
File "/home/tom/projects/buildout.coredev/src/Products.PortalTransforms/Products/PortalTransforms/tests/test_xss.py", line 15, in doTest | |
self.assertEqual(data_out, html.getData()) | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 511, in assertEqual | |
assertion_func(first, second, msg=msg) | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 504, in _baseAssertEqual | |
raise self.failureException(msg) | |
AssertionError: '<a>asd</a>' != '<a href="java&Tab;scr&NewLine;ipt:alert(1)">asd</a>' | |
110/121 (90.9%) | |
Failure in test test_34 (Products.PortalTransforms.tests.test_xss.TestXSSFilter) | |
Traceback (most recent call last): | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 327, in run | |
testMethod() | |
File "/home/tom/projects/buildout.coredev/src/Products.PortalTransforms/Products/PortalTransforms/tests/test_xss.py", line 197, in test_34 | |
self.doTest(data_in, data_out) | |
File "/home/tom/projects/buildout.coredev/src/Products.PortalTransforms/Products/PortalTransforms/tests/test_xss.py", line 15, in doTest | |
self.assertEqual(data_out, html.getData()) | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 511, in assertEqual | |
assertion_func(first, second, msg=msg) | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 504, in _baseAssertEqual | |
raise self.failureException(msg) | |
AssertionError: '<a>asdf</a>' != '<a href="javasc&baz;ript:alert(1)">asdf</a>' | |
111/121 (91.7%) | |
Failure in test test_35 (Products.PortalTransforms.tests.test_xss.TestXSSFilter) | |
Traceback (most recent call last): | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 327, in run | |
testMethod() | |
File "/home/tom/projects/buildout.coredev/src/Products.PortalTransforms/Products/PortalTransforms/tests/test_xss.py", line 202, in test_35 | |
self.doTest(data_in, data_out) | |
File "/home/tom/projects/buildout.coredev/src/Products.PortalTransforms/Products/PortalTransforms/tests/test_xss.py", line 15, in doTest | |
self.assertEqual(data_out, html.getData()) | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 511, in assertEqual | |
assertion_func(first, second, msg=msg) | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 504, in _baseAssertEqual | |
raise self.failureException(msg) | |
AssertionError: '' != '<div><p>]]></p></div>' | |
112/121 (92.6%) | |
Failure in test test_36 (Products.PortalTransforms.tests.test_xss.TestXSSFilter) | |
Traceback (most recent call last): | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 327, in run | |
testMethod() | |
File "/home/tom/projects/buildout.coredev/src/Products.PortalTransforms/Products/PortalTransforms/tests/test_xss.py", line 207, in test_36 | |
self.doTest(data_in, data_out) | |
File "/home/tom/projects/buildout.coredev/src/Products.PortalTransforms/Products/PortalTransforms/tests/test_xss.py", line 15, in doTest | |
self.assertEqual(data_out, html.getData()) | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 511, in assertEqual | |
assertion_func(first, second, msg=msg) | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 504, in _baseAssertEqual | |
raise self.failureException(msg) | |
AssertionError: 'Normal text—whew.' != '<p>Normal text\xc3\xa2\xc2\x80\xc2\x94whew.</p>' | |
113/121 (93.4%) | |
Failure in test test_37 (Products.PortalTransforms.tests.test_xss.TestXSSFilter) | |
Traceback (most recent call last): | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 327, in run | |
testMethod() | |
File "/home/tom/projects/buildout.coredev/src/Products.PortalTransforms/Products/PortalTransforms/tests/test_xss.py", line 212, in test_37 | |
self.doTest(data_in, data_out) | |
File "/home/tom/projects/buildout.coredev/src/Products.PortalTransforms/Products/PortalTransforms/tests/test_xss.py", line 15, in doTest | |
self.assertEqual(data_out, html.getData()) | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 511, in assertEqual | |
assertion_func(first, second, msg=msg) | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 504, in _baseAssertEqual | |
raise self.failureException(msg) | |
AssertionError: 'Normal text&mdash;whew.' != '<p>Normal text&mdash;whew.</p>' | |
114/121 (94.2%) | |
Failure in test test_38 (Products.PortalTransforms.tests.test_xss.TestXSSFilter) | |
Traceback (most recent call last): | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 327, in run | |
testMethod() | |
File "/home/tom/projects/buildout.coredev/src/Products.PortalTransforms/Products/PortalTransforms/tests/test_xss.py", line 216, in test_38 | |
self.doTest(data_in, data_in) | |
File "/home/tom/projects/buildout.coredev/src/Products.PortalTransforms/Products/PortalTransforms/tests/test_xss.py", line 15, in doTest | |
self.assertEqual(data_out, html.getData()) | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 511, in assertEqual | |
assertion_func(first, second, msg=msg) | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 504, in _baseAssertEqual | |
raise self.failureException(msg) | |
AssertionError: '\' <p><a href="http://T\\foo\\20111015\\bar.msg">FOO</a></p>\' ' != '<div><p>\' </p><p><a href="http://T%5Cfoo%5C20111015%5Cbar.msg">FOO</a></p>\' </div>' | |
115/121 (95.0%) | |
Failure in test test_39 (Products.PortalTransforms.tests.test_xss.TestXSSFilter) | |
Traceback (most recent call last): | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 327, in run | |
testMethod() | |
File "/home/tom/projects/buildout.coredev/src/Products.PortalTransforms/Products/PortalTransforms/tests/test_xss.py", line 220, in test_39 | |
self.doTest(data_in, data_in) | |
File "/home/tom/projects/buildout.coredev/src/Products.PortalTransforms/Products/PortalTransforms/tests/test_xss.py", line 15, in doTest | |
self.assertEqual(data_out, html.getData()) | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 511, in assertEqual | |
assertion_func(first, second, msg=msg) | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 504, in _baseAssertEqual | |
raise self.failureException(msg) | |
AssertionError: '<a href="*𝒜\xa9"></a>' != '<a href="*&Ascr;%C2%A9"></a>' | |
116/121 (95.9%) | |
Failure in test test_4 (Products.PortalTransforms.tests.test_xss.TestXSSFilter) | |
Traceback (most recent call last): | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 327, in run | |
testMethod() | |
File "/home/tom/projects/buildout.coredev/src/Products.PortalTransforms/Products/PortalTransforms/tests/test_xss.py", line 36, in test_4 | |
self.doTest(data_in, data_out) | |
File "/home/tom/projects/buildout.coredev/src/Products.PortalTransforms/Products/PortalTransforms/tests/test_xss.py", line 15, in doTest | |
self.assertEqual(data_out, html.getData()) | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 511, in assertEqual | |
assertion_func(first, second, msg=msg) | |
File "/opt/Python273/lib/python2.7/unittest/case.py", line 504, in _baseAssertEqual | |
raise self.failureException(msg) | |
AssertionError: '<img />' != '<img src="">' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment