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

Method test_get_public_key

tests/algorithms/test_RSA.py:322–328  ·  view source on GitHub ↗
(self, private_key)

Source from the content-addressed store, hash-verified

320
321 @pytest.mark.parametrize("private_key", PRIVATE_KEYS)
322 def test_get_public_key(self, private_key):
323 key = RSAKey(private_key, ALGORITHMS.RS256)
324 public_key = key.public_key()
325 public_key2 = public_key.public_key()
326 assert public_key.is_public()
327 assert public_key2.is_public()
328 assert public_key == public_key2
329
330 @pytest.mark.parametrize("pkey", PRIVATE_KEYS)
331 def test_to_pem(self, pkey):

Callers

nothing calls this directly

Calls 4

public_keyMethod · 0.95
RSAKeyClass · 0.90
public_keyMethod · 0.45
is_publicMethod · 0.45

Tested by

no test coverage detected