(self)
| 1108 | block_size: int |
| 1109 | |
| 1110 | def test_methods(self): |
| 1111 | h = self.hmac_new(b"my secret key", digestmod=self.digestname) |
| 1112 | self.assertIsInstance(h, self.hmac_class) |
| 1113 | self.assertIsNone(h.update(b"compute the hash of this text!")) |
| 1114 | self.assertIsInstance(h.digest(), bytes) |
| 1115 | self.assertIsInstance(h.hexdigest(), str) |
| 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) |
nothing calls this directly
no test coverage detected