(self)
| 1263 | self.assertEqual(h1.hexdigest(), h2.hexdigest()) |
| 1264 | |
| 1265 | def test_equality_new(self): |
| 1266 | # Testing if the copy has the same digests with hmac.new(). |
| 1267 | h1 = hmac.new(b"key", digestmod="sha256") |
| 1268 | h1.update(b"some random text") |
| 1269 | h2 = h1.copy() |
| 1270 | # Using id() in case somebody has overridden __eq__/__ne__. |
| 1271 | self.assertNotEqual(id(h1), id(h2)) |
| 1272 | self.assertEqual(h1.digest(), h2.digest()) |
| 1273 | self.assertEqual(h1.hexdigest(), h2.hexdigest()) |
| 1274 | |
| 1275 | |
| 1276 | class ExtensionCopyTestCase(CopyBaseTestCase): |
nothing calls this directly
no test coverage detected