bs4.tests.test_fuzz#

This file contains test cases reported by third parties using fuzzing tools, primarily from Google’s oss-fuzz project. Some of these represent real problems with Beautiful Soup, but many are problems in libraries that Beautiful Soup depends on, and many of the test cases represent different ways of triggering the same problem.

Grouping these test cases together makes it easy to see which test cases represent the same problem, and puts the test cases in close proximity to code that can trigger the problems.

Module Contents#

Classes#

class bs4.tests.test_fuzz.TestFuzz#

Bases: object

TESTCASE_SUFFIX = '.testcase'#
test_rejected_markup(filename)#
test_deeply_nested_document(filename)#
test_html5lib_parse_errors(filename)#
__markup(filename)#