Sutoppu Specs
Custom Sutoppu Specifications.
This module provides custom sutoppu specifications.
AlwaysFalseSpec
Bases: Specification
A specification that is never satisfied.
is_satisfied_by(candidate)
Check if the candidate satisfies the specification.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
candidate
|
Any
|
The candidate to check. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
bool |
bool
|
Always False. |
AlwaysTrueSpec
Bases: Specification
A specification that is always satisfied.
is_satisfied_by(candidate)
Check if the candidate satisfies the specification.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
candidate
|
Any
|
The candidate to check. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
bool |
bool
|
Always True. |