tests.test_optional
TestOptionalClass
The probability is configurable.
Other arguments are passed through to the function.
Only probabilities in the range (0, 1].
Accessing non-functions through the .optional attribute will throw a TypeError.