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

Method test_properties

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

Source from the content-addressed store, hash-verified

1116 self.assertIsInstance(h.copy(), self.hmac_class)
1117
1118 def test_properties(self):
1119 h = self.hmac_new(b"my secret key", digestmod=self.digestname)
1120 self.assertEqual(h.name, f"hmac-{self.digestname}")
1121 self.assertEqual(h.digest_size, self.digest_size)
1122 self.assertEqual(h.block_size, self.block_size)
1123
1124 def test_copy(self):
1125 # 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