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

Method setUpClass

Lib/test/test_hmac.py:726–731  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

724
725 @classmethod
726 def setUpClass(cls):
727 super().setUpClass()
728 for meth in ['_init_openssl_hmac', '_init_builtin_hmac']:
729 fn = getattr(cls.hmac.HMAC, meth)
730 cm = patch.object(cls.hmac.HMAC, meth, autospec=True, wraps=fn)
731 cls.enterClassContext(cm)
732
733 @classmethod
734 def tearDownClass(cls):

Callers

nothing calls this directly

Calls 3

superClass · 0.85
enterClassContextMethod · 0.80
setUpClassMethod · 0.45

Tested by

no test coverage detected