assert_python#

Functions

assert_class_documentation

Test a class for complete documentation.

assert_class_isabstract

Assert an object type is abstract.

assert_class_isconcrete

Assert an object type is concrete.

assert_class_ismixin

Assert an object type is a mixin.

assert_class_issemiabstract

Assert an object type is abstract.

assert_classmethod_documentation

Test a classmethod for complete documentation.

assert_classmethod_isabstract

Assert an object has an abstract classmethod.

assert_classmethod_isconcrete

Assert an object has a concrete classmethod.

assert_classmethod_not_raises_NotImplementedError

Test that a classmethod does not raise NotImplementedError.

assert_classmethod_raises_NotImplementedError

Test that a classmethod raises NotImplementedError.

assert_docstring

Test for the presence of a docstring in an object.

assert_function_documentation

Test a function for complete documentation.

assert_function_isabstract

Assert an abstract function for several attributes:

assert_function_isconcrete

Assert a concrete function for several attributes:

assert_function_not_raises_NotImplementedError

Test that a function does not raise NotImplementedError.

assert_function_raises_NotImplementedError

Test that a function raises NotImplementedError.

assert_hasattr

Assert an object has an attribute.

assert_method_documentation

Test a method for complete documentation.

assert_method_isabstract

Assert an object has an abstract method.

assert_method_isconcrete

Assert an object has a concrete method.

assert_method_not_raises_NotImplementedError

Test that a method does not raise NotImplementedError.

assert_method_raises_NotImplementedError

Test that a method raises NotImplementedError.

assert_module_documentation

Test a module for complete documentation.

assert_module_public_api

Test a module for a public API.

assert_property_documentation

Test a property for complete documentation.

assert_property_isabstract

Assert an object has an abstract property.

assert_property_isconcrete

Assert an object has an concrete property.

assert_property_not_raises_NotImplementedError

Test that a method does not raise NotImplementedError.

assert_property_raises_NotImplementedError

Test that a property raises NotImplementedError.

not_raises

Ensure that method does not raise an ForbiddenException.

raises

Ensure that a function raises an expected exception or one of an expected set of exceptions.