Previous: The Issue Class, Up: Using WAchecker



3.3 Test Sets

Tests can be grouped into test sets. Test sets typically correspond to particular Web accessibility standards. Each test can be present in any number of test sets (consider HTML syntax checker or overlapping standards like Section 508 and WCAG 1.0).

List of all available test sets can be retrieved with the wachecker.test.all_test_sets () call, which returns sequence of pairs (test-set-class-name, test-set-class).

All test sets are instances of the wachecker.test.Test_Set. That class defines the following class methods:

name (class_)
Return “human readable” name of the test set as a string.
description (class_)
Return short description of the test set as a string.
tests (class_)
Return sequence of the tests contained in this test set. Each of the tests is represented by its class.

Test classes also define several such class methods. The most important ones are:

name (class_)
Return “human readable” name of the test as a string.
description (class_)
Return short description of the test as a string.
location (class_)
Return wachecker.location.Location instance pointing to a Web page defining and describing accessibility issues related to the test, or None when there is no such Web page.