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

Method test_properties

Lib/test/test_hmac.py:1072–1076  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1070 self.assertIsInstance(h.copy(), self.hmac_class)
1071
1072 def test_properties(self):
1073 h = self.hmac_new(b"my secret key", digestmod=self.digestname)
1074 self.assertEqual(h.name, f"hmac-{self.digestname}")
1075 self.assertEqual(h.digest_size, self.digest_size)
1076 self.assertEqual(h.block_size, self.block_size)
1077
1078 def test_copy(self):
1079 # Test a generic copy() and the attributes it exposes.

Callers

nothing calls this directly

Calls 2

hmac_newMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected