tests.test_optional

Module Contents

Classes

TestOptionalClass

class tests.test_optional.TestOptionalClass
test_optional() None
test_optional_probability() None

The probability is configurable.

test_optional_arguments() None

Other arguments are passed through to the function.

test_optional_valid_range() None

Only probabilities in the range (0, 1].

test_functions_only()

Accessing non-functions through the .optional attribute will throw a TypeError.