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

Method setUpClass

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

Source from the content-addressed store, hash-verified

1158
1159 @classmethod
1160 def setUpClass(cls):
1161 super().setUpClass()
1162 cls.hmac_class = _hashlib.HMAC
1163 cls.digestname = 'sha256'
1164 cls.digest_size = 32
1165 cls.block_size = 64
1166
1167 def test_repr(self):
1168 h = self.hmac_new(b"my secret key", digestmod=self.digestname)

Callers

nothing calls this directly

Calls 2

superClass · 0.85
setUpClassMethod · 0.45

Tested by

no test coverage detected