Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit 44540f5

Browse files
author
Matthias Koeppe
committed
src/sage/features/sagemath.py: Add doctests
1 parent 58572e1 commit 44540f5

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/sage/features/sagemath.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,24 @@ def __init__(self):
3131

3232

3333
class sage__geometry__polyhedron(PythonModule):
34+
r"""
35+
A :class:`sage.features.Feature` describing the presence of ``sage.geometry.polyhedron``.
36+
37+
EXAMPLES::
38+
39+
sage: from sage.features.sagemath import sage__geometry__polyhedron
40+
sage: sage__geometry__polyhedron().is_present() # optional - sage.geometry.polyhedron
41+
FeatureTestResult('sage.geometry.polyhedron', True)
42+
"""
3443

3544
def __init__(self):
45+
r"""
46+
TESTS::
47+
48+
sage: from sage.features.sagemath import sage__geometry__polyhedron
49+
sage: isinstance(sage__geometry__polyhedron(), sage__geometry__polyhedron)
50+
True
51+
"""
3652
PythonModule.__init__(self, 'sage.geometry.polyhedron')
3753

3854

0 commit comments

Comments
 (0)