MCPcopy Index your code
hub / github.com/python/cpython / test_classmethod

Method test_classmethod

Lib/test/test_decorators.py:102–105  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

100 self.assertEqual(wrapper(1), 1)
101
102 def test_classmethod(self):
103 wrapper = self.check_wrapper_attrs(classmethod, '<classmethod({!r})>')
104
105 self.assertRaises(TypeError, wrapper, 1)
106
107 def test_dotted(self):
108 decorators = MiscDecorators()

Callers

nothing calls this directly

Calls 2

check_wrapper_attrsMethod · 0.95
assertRaisesMethod · 0.45

Tested by

no test coverage detected