Sure is an idiomatic assertion library for Python, designed for expressive and readable test assertions. Version 2.0.1 is current. It monkey-patches built-in types like `str`, `list`, `dict` to provide fluent assertion chains (e.g., `"hello".should.equal("hello")`). The library is in maintenance mode with sparse releases.
pip install sureVerified import paths — ran on the pinned version, not inferred.
Basic usage showing .should chains and the anything sentinel.
Import sure only in test files or use a test runner that isolates imports. Alternatively, use sure's context manager to limit scope (not available in all versions).
Use the `.should` attribute syntax instead.
Upgrade to Python 3.6+ if you are on an older version.
Run `pip install sure` to install the package.
Add `import sure` at the top of your test module.
Check your test logic and the actual value. This is expected behavior; handle with try/except if needed.
No dependency data recorded yet.