source:
trunk/src/allmydata/util/assertutil.py
| Last change on this file was 1cfe843d, checked in by Alexandre Detiste <alexandre.detiste@…>, at 2024-02-22T23:40:25Z | |
|---|---|
|
|
| File size: 351 bytes | |
| Line | |
|---|---|
| 1 | """ |
| 2 | Tests useful in assertion checking, prints out nicely formated messages too. |
| 3 | |
| 4 | Backwards compatibility layer, the versions in pyutil are better maintained and |
| 5 | have tests. |
| 6 | |
| 7 | Ported to Python 3. |
| 8 | """ |
| 9 | |
| 10 | # The API importers expect: |
| 11 | from pyutil.assertutil import _assert, precondition, postcondition |
| 12 | |
| 13 | __all__ = ["_assert", "precondition", "postcondition"] |
Note: See TracBrowser
for help on using the repository browser.
