summaryrefslogtreecommitdiffstats
path: root/contrib/python/propcache/tests/test_api.py
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/python/propcache/tests/test_api.py')
-rw-r--r--contrib/python/propcache/tests/test_api.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/contrib/python/propcache/tests/test_api.py b/contrib/python/propcache/tests/test_api.py
new file mode 100644
index 00000000000..85beec3606a
--- /dev/null
+++ b/contrib/python/propcache/tests/test_api.py
@@ -0,0 +1,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