diff options
Diffstat (limited to 'tests/test_util_inspect.py')
-rw-r--r-- | tests/test_util_inspect.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/test_util_inspect.py b/tests/test_util_inspect.py index 5c9520370..627d20f54 100644 --- a/tests/test_util_inspect.py +++ b/tests/test_util_inspect.py @@ -435,6 +435,16 @@ def test_dict_customtype(): @pytest.mark.sphinx(testroot='ext-autodoc') +def test_isclassmethod(app): + from target.methods import Base, Inherited + + assert inspect.isclassmethod(Base.classmeth) is True + assert inspect.isclassmethod(Base.meth) is False + assert inspect.isclassmethod(Inherited.classmeth) is True + assert inspect.isclassmethod(Inherited.meth) is False + + +@pytest.mark.sphinx(testroot='ext-autodoc') def test_isstaticmethod(app): from target.methods import Base, Inherited |