MCPcopy Index your code
hub / github.com/RustPython/RustPython / setUpClass

Method setUpClass

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 4

superClass · 0.85
getattrFunction · 0.85
enterClassContextMethod · 0.80
setUpClassMethod · 0.45

Tested by

no test coverage detected