(self)
| 46 | assert cipher.key_size == keysize |
| 47 | |
| 48 | def test_invalid_key_size(self): |
| 49 | with pytest.raises(ValueError): |
| 50 | AES(binascii.unhexlify(b"0" * 12)) |
| 51 | |
| 52 | def test_invalid_key_type(self): |
| 53 | with pytest.raises(TypeError, match="key must be bytes"): |