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

Method test_to_dict

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

Source from the content-addressed store, hash-verified

370
371 @pytest.mark.parametrize("private_key", PRIVATE_KEYS)
372 def test_to_dict(self, private_key):
373 key = RSAKey(private_key, ALGORITHMS.RS256)
374 self.assert_parameters(key.to_dict(), private=True)
375 self.assert_parameters(key.public_key().to_dict(), private=False)
376 self.assert_roundtrip(key)
377 self.assert_roundtrip(key.public_key())

Callers

nothing calls this directly

Calls 6

assert_parametersMethod · 0.95
to_dictMethod · 0.95
public_keyMethod · 0.95
assert_roundtripMethod · 0.95
RSAKeyClass · 0.90
to_dictMethod · 0.45

Tested by

no test coverage detected