(self)
| 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. |
nothing calls this directly
no test coverage detected