(self)
| 33 | |
| 34 | class TestJWK: |
| 35 | def test_interface(self): |
| 36 | key = jwk.Key("key", "ALG") |
| 37 | |
| 38 | with pytest.raises(NotImplementedError): |
| 39 | key.sign("") |
| 40 | |
| 41 | with pytest.raises(NotImplementedError): |
| 42 | key.verify("", "") |
| 43 | |
| 44 | @pytest.mark.skipif(RSAKey is None, reason="RSA is not available") |
| 45 | def test_invalid_hash_alg(self): |