MCPcopy Create free account
hub / github.com/mpdavis/python-jose / TestBaseAlgorithm

Class TestBaseAlgorithm

tests/algorithms/test_base.py:11–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9
10
11class TestBaseAlgorithm:
12 def test_sign_is_interface(self, alg):
13 with pytest.raises(NotImplementedError):
14 alg.sign("msg")
15
16 def test_verify_is_interface(self, alg):
17 with pytest.raises(NotImplementedError):
18 alg.verify("msg", "sig")
19
20 def test_encrypt_is_interface(self, alg):
21 with pytest.raises(NotImplementedError):
22 alg.encrypt(
23 "plain text",
24 )
25
26 def test_decrypt_is_interface(self, alg):
27 with pytest.raises(NotImplementedError):
28 alg.decrypt("plain text", iv="iv")
29
30 def test_wrap_key_is_interface(self, alg):
31 with pytest.raises(NotImplementedError):
32 alg.wrap_key("plain text")
33
34 def test_unwrap_key_is_interface(self, alg):
35 with pytest.raises(NotImplementedError):
36 alg.unwrap_key("plain text")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…