File: test_api.py

package info (click to toggle)
python-propcache 0.3.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 380 kB
  • sloc: python: 1,021; makefile: 197
file content (11 lines) | stat: -rw-r--r-- 375 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
"""Test we do not break the public API."""

from propcache import _helpers, api


def test_api() -> None:
    """Verify the public API is accessible."""
    assert api.cached_property is not None
    assert api.under_cached_property is not None
    assert api.cached_property is _helpers.cached_property
    assert api.under_cached_property is _helpers.under_cached_property