Used with the `or` operator. If an assertion would be false, put the `allow_before` after the condition. If a test incorrectly errors, put the `allow_before` before the condition.
(d: datetime)
| 51 | |
| 52 | |
| 53 | def allow_before(d: datetime) -> bool: |
| 54 | """ |
| 55 | Used with the `or` operator. |
| 56 | If an assertion would be false, put the `allow_before` after the condition. |
| 57 | If a test incorrectly errors, put the `allow_before` before the condition. |
| 58 | """ |
| 59 | return datetime.now() < d |
no outgoing calls